|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.client.protocol.admin.AdminClient.MetadataManagementOperations
public class AdminClient.MetadataManagementOperations
Encapsulates all operations that deal with cluster.xml and stores.xml
| Constructor Summary | |
|---|---|
AdminClient.MetadataManagementOperations()
|
|
| Method Summary | |
|---|---|
Versioned<Cluster> |
getRemoteCluster(int nodeId)
Get the cluster information from a remote node. |
Versioned<java.lang.String> |
getRemoteMetadata(int remoteNodeId,
java.lang.String key)
Get the metadata on a remote node. |
Versioned<java.util.List<StoreDefinition>> |
getRemoteStoreDefList(int nodeId)
Retrieve the store definitions from a remote node. |
void |
setMetadataversion(java.util.Properties newProperties)
Set the metadata versions to the given set |
void |
updateMetadataversion(java.lang.String versionKey)
Update the metadata version for the given key (cluster or store). |
void |
updateRemoteCluster(int nodeId,
Cluster cluster,
Version clock)
Update the cluster information MetadataStore.CLUSTER_KEY on a
remote node. |
void |
updateRemoteMetadata(int remoteNodeId,
java.lang.String key,
Versioned<java.lang.String> value)
Update metadata at the given remoteNodeId. |
void |
updateRemoteMetadata(java.util.List<java.lang.Integer> remoteNodeIds,
java.lang.String key,
Versioned<java.lang.String> value)
Wrapper for updateRemoteMetadata function used against a single Node It basically loops over the entire list of Nodes that we need to execute the required operation against. |
void |
updateRemoteStoreDefList(int nodeId,
java.util.List<StoreDefinition> storesList)
Update the store definitions on a remote node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdminClient.MetadataManagementOperations()
| Method Detail |
|---|
public void updateMetadataversion(java.lang.String versionKey)
versionKey - The metadata key for which Version should be
incrementedpublic void setMetadataversion(java.util.Properties newProperties)
newProperties - The new metadata versions to be set across all
the nodes in the cluster
public void updateRemoteMetadata(int remoteNodeId,
java.lang.String key,
Versioned<java.lang.String> value)
Metadata keys can be one of MetadataStore.METADATA_KEYS
eg.
MetadataStore for more
information.
remoteNodeId - Id of the nodekey - Metadata key to updatevalue - Value for the metadata key
public void updateRemoteMetadata(java.util.List<java.lang.Integer> remoteNodeIds,
java.lang.String key,
Versioned<java.lang.String> value)
Metadata keys can be one of MetadataStore.METADATA_KEYS
eg.
MetadataStore for more
information.
remoteNodeId - Id of the nodekey - Metadata key to updatevalue - Value for the metadata key
public Versioned<java.lang.String> getRemoteMetadata(int remoteNodeId,
java.lang.String key)
Metadata keys can be one of MetadataStore.METADATA_KEYS
eg.
MetadataStore for more
information.
remoteNodeId - Id of the nodekey - Metadata key to update
Version
public void updateRemoteCluster(int nodeId,
Cluster cluster,
Version clock)
throws VoldemortException
MetadataStore.CLUSTER_KEY on a
remote node.
nodeId - Id of the remote nodecluster - The new cluster object
VoldemortException
public Versioned<Cluster> getRemoteCluster(int nodeId)
throws VoldemortException
nodeId - Node to retrieve information from
Version
VoldemortException
public void updateRemoteStoreDefList(int nodeId,
java.util.List<StoreDefinition> storesList)
throws VoldemortException
nodeId - The node id of the machinestoresList - The new store list
VoldemortException
public Versioned<java.util.List<StoreDefinition>> getRemoteStoreDefList(int nodeId)
throws VoldemortException
nodeId - The node id from which we can to remote the store
definition
VoldemortException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||