|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StorageServiceMBean
Method Summary | |
---|---|
void |
clearSnapshot()
Remove all the existing snapshots. |
void |
decommission()
transfer this node's data to other machines and remove it from service. |
void |
deliverHints(java.lang.String host)
force hint delivery to an endpoint |
void |
drain()
makes node unavailable for writes, flushes memtables and replays commitlog. |
java.lang.String |
exportSchema()
Introduced in 0.7 to allow schema yaml to be exported. |
void |
forceRemoveCompletion()
Force a remove operation to finish. |
void |
forceTableCleanup(java.lang.String tableName,
java.lang.String... columnFamilies)
Trigger a cleanup of keys on a single keyspace |
void |
forceTableCompaction(java.lang.String tableName,
java.lang.String... columnFamilies)
Forces major compaction of a single keyspace |
void |
forceTableFlush(java.lang.String tableName,
java.lang.String... columnFamilies)
Flush all memtables for the given column families, or all columnfamilies for the given table if none are explicitly listed. |
void |
forceTableRepair(java.lang.String tableName,
java.lang.String... columnFamilies)
Triggers proactive repair for given column families, or all columnfamilies for the given table if none are explicitly listed. |
int |
getCurrentGenerationNumber()
Return the generation value for this node. |
java.lang.String |
getDrainProgress()
get the progress of a drain operation |
java.util.List<java.lang.String> |
getJoiningNodes()
Retrieve the list of nodes currently bootstrapping into the ring. |
java.util.List<java.lang.String> |
getKeyspaces()
|
java.util.List<java.lang.String> |
getLeavingNodes()
Retrieve the list of nodes currently leaving the ring. |
java.util.List<java.lang.String> |
getLiveNodes()
Retrieve the list of live nodes in the cluster, where "liveness" is determined by the failure detector of the node being queried. |
double |
getLoad()
Numeric load value. |
java.util.Map<java.lang.String,java.lang.String> |
getLoadMap()
Human-readable load value. |
java.lang.String |
getLoadString()
Human-readable load value |
java.util.List<java.net.InetAddress> |
getNaturalEndpoints(java.lang.String table,
byte[] key)
This method returns the N endpoints that are responsible for storing the specified key i.e for replication. |
java.lang.String |
getOperationMode()
get the operational mode (leaving, joining, normal, decommissioned, client) |
java.util.Map<Token,java.lang.Float> |
getOwnership()
given a list of tokens (representing the nodes in the cluster), returns a mapping from "token -> %age of cluster owned by that token" |
java.util.Map<Range,java.util.List<java.lang.String>> |
getPendingRangeToEndpointMap(java.lang.String keyspace)
Retrieve a map of pending ranges to endpoints that describe the ring topology |
java.util.Map<Range,java.util.List<java.lang.String>> |
getRangeToEndpointMap(java.lang.String keyspace)
Retrieve a map of range to end points that describe the ring topology of a Cassandra cluster. |
java.lang.String |
getReleaseVersion()
Fetch a string representation of the Cassandra version. |
java.lang.String |
getRemovalStatus()
Get the status of a token removal. |
java.lang.String |
getToken()
Fetch a string representation of the token. |
java.util.Map<Token,java.lang.String> |
getTokenToEndpointMap()
Retrieve a map of tokens to endpoints, including the bootstrapping ones. |
java.util.List<java.lang.String> |
getUnreachableNodes()
Retrieve the list of unreachable nodes in the cluster, as determined by this node's failure detector. |
void |
loadBalance()
This node will unload its data onto its neighbors, and bootstrap to share the range of the most-loaded node in the ring. |
void |
loadSchemaFromYAML()
Introduced in 0.7 to allow nodes to load their existing yaml defined schemas. |
void |
move(java.lang.String newToken)
|
void |
removeToken(java.lang.String token)
removeToken removes token (and all data associated with enpoint that had it) from the ring |
void |
saveCaches()
save row and key caches |
void |
setLog4jLevel(java.lang.String classQualifier,
java.lang.String level)
set the logging level at runtime |
void |
takeAllSnapshot(java.lang.String tag)
Takes a snapshot for every table. |
void |
takeSnapshot(java.lang.String tableName,
java.lang.String tag)
Takes the snapshot for a given table. |
void |
truncate(java.lang.String keyspace,
java.lang.String columnFamily)
Truncates (deletes) the given columnFamily from the provided keyspace. |
Method Detail |
---|
java.util.List<java.lang.String> getLiveNodes()
java.util.List<java.lang.String> getUnreachableNodes()
java.util.List<java.lang.String> getJoiningNodes()
java.util.List<java.lang.String> getLeavingNodes()
java.lang.String getToken()
java.lang.String getReleaseVersion()
java.util.Map<Range,java.util.List<java.lang.String>> getRangeToEndpointMap(java.lang.String keyspace)
java.util.Map<Range,java.util.List<java.lang.String>> getPendingRangeToEndpointMap(java.lang.String keyspace)
keyspace
- the keyspace to get the pending range map for.
java.util.Map<Token,java.lang.String> getTokenToEndpointMap()
double getLoad()
java.lang.String getLoadString()
java.util.Map<java.lang.String,java.lang.String> getLoadMap()
int getCurrentGenerationNumber()
java.util.List<java.net.InetAddress> getNaturalEndpoints(java.lang.String table, byte[] key)
key
- - key for which we need to find the endpoint return value -
the endpoint responsible for this keyvoid takeSnapshot(java.lang.String tableName, java.lang.String tag) throws java.io.IOException
tableName
- the name of the table.tag
- the tag given to the snapshot (null is permissible)
java.io.IOException
void takeAllSnapshot(java.lang.String tag) throws java.io.IOException
tag
- the tag given to the snapshot (null is permissible)
java.io.IOException
void clearSnapshot() throws java.io.IOException
java.io.IOException
void forceTableCompaction(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
void forceTableCleanup(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
void forceTableFlush(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
tableName
- columnFamilies
-
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
void forceTableRepair(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException
tableName
- columnFamilies
-
java.io.IOException
void decommission() throws java.lang.InterruptedException
java.lang.InterruptedException
void move(java.lang.String newToken) throws java.io.IOException, java.lang.InterruptedException
newToken
- token to move this node to.
This node will unload its data onto its neighbors, and bootstrap to the new token.
java.io.IOException
java.lang.InterruptedException
void loadBalance() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
void removeToken(java.lang.String token)
java.lang.String getRemovalStatus()
void forceRemoveCompletion()
void setLog4jLevel(java.lang.String classQualifier, java.lang.String level)
java.lang.String getOperationMode()
java.lang.String getDrainProgress()
void drain() throws java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
void loadSchemaFromYAML() throws ConfigurationException, java.io.IOException
ConfigurationException
java.io.IOException
java.lang.String exportSchema() throws java.io.IOException
java.io.IOException
void truncate(java.lang.String keyspace, java.lang.String columnFamily) throws UnavailableException, java.util.concurrent.TimeoutException, java.io.IOException
keyspace
- The keyspace to delete fromcolumnFamily
- The column family to delete data from.
UnavailableException
- if some of the hosts in the ring are down.
java.util.concurrent.TimeoutException
java.io.IOException
void deliverHints(java.lang.String host) throws java.net.UnknownHostException
java.net.UnknownHostException
void saveCaches() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.Map<Token,java.lang.Float> getOwnership()
java.util.List<java.lang.String> getKeyspaces()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |