|
||||||||||
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 | |
---|---|
void |
fetchAndUpdateRemoteStore(int nodeId,
java.util.List<StoreDefinition> updatedStores)
Helper method to fetch the current stores xml list and update the specified stores |
void |
fetchAndUpdateRemoteStores(java.util.List<StoreDefinition> updatedStores)
Helper method to fetch the current stores xml list and update the specified stores. |
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()
|
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.util.Collection<java.lang.String> versionKeys)
Update the metadata versions for the given keys (cluster or store). |
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 |
updateRemoteMetadataPair(int remoteNodeId,
java.lang.String clusterKey,
Versioned<java.lang.String> clusterValue,
java.lang.String storesKey,
Versioned<java.lang.String> storesValue)
Update metadata pair |
void |
updateRemoteMetadataPair(java.util.List<java.lang.Integer> remoteNodeIds,
java.lang.String clusterKey,
Versioned<java.lang.String> clusterValue,
java.lang.String storesKey,
Versioned<java.lang.String> storesValue)
Wrapper for updateRemoteMetadataPair 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. |
void |
updateRemoteStoreDefList(java.util.List<StoreDefinition> storesList)
Wrapper for updateRemoteStoreDefList : update this for all the nodes |
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 updateMetadataversion(java.util.Collection<java.lang.String> versionKeys)
versionKeys
- The metadata keys 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 clusterpublic 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 keypublic 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.
remoteNodeIds
- Ids of the nodeskey
- Metadata key to updatevalue
- Value for the metadata keypublic void updateRemoteMetadataPair(int remoteNodeId, java.lang.String clusterKey, Versioned<java.lang.String> clusterValue, java.lang.String storesKey, Versioned<java.lang.String> storesValue)
remoteNodeId
- Id of the nodeclusterKey
- cluster key to updateclusterValue
- value of the cluster metadata keystoresKey
- stores key to updatestoresValue
- value of the stores metadata keypublic void updateRemoteMetadataPair(java.util.List<java.lang.Integer> remoteNodeIds, java.lang.String clusterKey, Versioned<java.lang.String> clusterValue, java.lang.String storesKey, Versioned<java.lang.String> storesValue)
remoteNodeIds
- Ids of the nodesclusterKey
- cluster key to updateclusterValue
- value of the cluster metadata keystoresKey
- stores key to updatestoresValue
- value of the stores metadata keypublic void fetchAndUpdateRemoteStore(int nodeId, java.util.List<StoreDefinition> updatedStores)
nodeId
- ID of the node for which the stores list has to be
updatedupdatedStores
- New version of the stores to be updatedpublic void fetchAndUpdateRemoteStores(java.util.List<StoreDefinition> updatedStores)
updatedStores
- New version of the stores to be updatedpublic 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 void updateRemoteStoreDefList(java.util.List<StoreDefinition> storesList) throws VoldemortException
storesList
- 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
public Versioned<java.util.List<StoreDefinition>> getRemoteStoreDefList() throws VoldemortException
VoldemortException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |