|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StorageServiceMBean
Method Summary | |
---|---|
void |
bulkLoad(java.lang.String directory)
|
void |
clearSnapshot(java.lang.String tag,
java.lang.String... tableNames)
Remove the snapshot with the given name from the given tables. |
void |
decommission()
transfer this node's data to other machines and remove it from service. |
java.util.List<java.lang.String> |
describeRingJMX(java.lang.String keyspace)
The same as describeRing(String) but converts TokenRange to the String for JMX compatibility |
void |
disableScheduledRangeXfers()
Disable processing of queued range transfers. |
void |
drain()
makes node unavailable for writes, flushes memtables and replays commitlog. |
java.util.Map<java.net.InetAddress,java.lang.Float> |
effectiveOwnership(java.lang.String keyspace)
Effective ownership is % of the data each node owns given the keyspace we calculate the percentage using replication factor. |
void |
enableScheduledRangeXfers()
Begin processing of queued range transfers. |
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,
boolean isSequential,
boolean isLocal,
java.lang.String... columnFamilies)
Triggers proactive repair for given column families, or all columnfamilies for the given table if none are explicitly listed. |
void |
forceTableRepairPrimaryRange(java.lang.String tableName,
boolean isSequential,
boolean isLocal,
java.lang.String... columnFamilies)
Triggers proactive repair but only for the node primary range. |
void |
forceTableRepairRange(java.lang.String beginToken,
java.lang.String endToken,
java.lang.String tableName,
boolean isSequential,
boolean isLocal,
java.lang.String... columnFamilies)
Perform repair of a specific range. |
void |
forceTerminateAllRepairSessions()
|
java.lang.String[] |
getAllDataFileLocations()
Get the list of all data file locations from conf |
java.lang.String |
getCommitLogLocation()
Get location of the commit log |
int |
getCompactionThroughputMbPerSec()
|
int |
getCurrentGenerationNumber()
Return the generation value for this node. |
java.lang.String |
getDrainProgress()
get the progress of a drain operation |
int |
getExceptionCount()
|
java.util.Map<java.lang.String,java.lang.String> |
getHostIdMap()
Retrieve the mapping of endpoint to host ID |
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()
Deprecated. |
java.util.Map<java.lang.String,java.lang.String> |
getLoadMap()
Human-readable load value. |
java.lang.String |
getLoadString()
Human-readable load value |
java.lang.String |
getLocalHostId()
Retrieve this hosts unique ID |
java.util.List<java.lang.String> |
getMovingNodes()
Retrieve the list of nodes currently moving in the ring. |
java.util.List<java.net.InetAddress> |
getNaturalEndpoints(java.lang.String table,
java.nio.ByteBuffer key)
|
java.util.List<java.net.InetAddress> |
getNaturalEndpoints(java.lang.String table,
java.lang.String cf,
java.lang.String 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<java.net.InetAddress,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<java.util.List<java.lang.String>,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.List<java.lang.String> |
getPrimaryRange()
Returns the local node's primary range. |
java.util.Map<java.util.List<java.lang.String>,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.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> |
getRangeToRpcaddressMap(java.lang.String keyspace)
Retrieve a map of range to rpc addresses 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 |
getSavedCachesLocation()
Get location of the saved caches dir |
java.lang.String |
getSchemaVersion()
Fetch a string representation of the current Schema version. |
int |
getStreamThroughputMbPerSec()
|
java.util.List<java.lang.String> |
getTokens()
Fetch string representations of the tokens for this node. |
java.util.List<java.lang.String> |
getTokens(java.lang.String endpoint)
Fetch string representations of the tokens for a specified node. |
java.util.Map<java.lang.String,java.lang.String> |
getTokenToEndpointMap()
Retrieve a map of tokens to endpoints, including the bootstrapping ones. |
double |
getTracingProbability()
Returns the configured tracing probability. |
java.util.List<java.lang.String> |
getUnreachableNodes()
Retrieve the list of unreachable nodes in the cluster, as determined by this node's failure detector. |
boolean |
isIncrementalBackupsEnabled()
|
boolean |
isInitialized()
|
boolean |
isJoined()
|
boolean |
isNativeTransportRunning()
|
boolean |
isRPCServerRunning()
|
void |
joinRing()
|
void |
loadNewSSTables(java.lang.String ksName,
java.lang.String cfName)
Load new SSTables to the given keyspace/columnFamily |
void |
move(java.lang.String newToken)
|
void |
rebuild(java.lang.String sourceDc)
Initiate a process of streaming data for which we are responsible from other nodes. |
void |
rebuildSecondaryIndex(java.lang.String ksName,
java.lang.String cfName,
java.lang.String... idxNames)
rebuild the specified indexes |
void |
relocate(java.util.Collection<java.lang.String> srcTokens)
|
void |
removeNode(java.lang.String token)
removeToken removes token (and all data associated with enpoint that had it) from the ring |
void |
rescheduleFailedDeletions()
|
void |
resetLocalSchema()
|
java.util.List<java.lang.String> |
sampleKeyRange()
Return a List of Tokens representing a sample of keys across all ColumnFamilyStores. |
void |
scrub(java.lang.String tableName,
java.lang.String... columnFamilies)
Scrub (deserialize + reserialize at the latest version, skipping bad rows if any) the given keyspace. |
void |
setCompactionThroughputMbPerSec(int value)
|
void |
setIncrementalBackupsEnabled(boolean value)
|
void |
setLog4jLevel(java.lang.String classQualifier,
java.lang.String level)
set the logging level at runtime |
void |
setStreamThroughputMbPerSec(int value)
|
void |
setTraceProbability(double probability)
Enables/Disables tracing for the whole system. |
void |
startGossiping()
|
void |
startNativeTransport()
|
void |
startRPCServer()
|
void |
stopGossiping()
|
void |
stopNativeTransport()
|
void |
stopRPCServer()
|
void |
takeColumnFamilySnapshot(java.lang.String tableName,
java.lang.String columnFamilyName,
java.lang.String tag)
Takes the snapshot of a specific column family. |
void |
takeSnapshot(java.lang.String tag,
java.lang.String... tableNames)
Takes the snapshot for the given tables. |
void |
truncate(java.lang.String keyspace,
java.lang.String columnFamily)
Truncates (deletes) the given columnFamily from the provided keyspace. |
void |
updateSnitch(java.lang.String epSnitchClassName,
java.lang.Boolean dynamic,
java.lang.Integer dynamicUpdateInterval,
java.lang.Integer dynamicResetInterval,
java.lang.Double dynamicBadnessThreshold)
Change endpointsnitch class and dynamic-ness (and dynamic attributes) at runtime |
void |
upgradeSSTables(java.lang.String tableName,
java.lang.String... columnFamilies)
Rewrite all sstables to the latest version. |
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.util.List<java.lang.String> getMovingNodes()
java.util.List<java.lang.String> getTokens()
java.util.List<java.lang.String> getTokens(java.lang.String endpoint) throws java.net.UnknownHostException
endpoint
- string representation of an node
java.net.UnknownHostException
java.lang.String getReleaseVersion()
java.lang.String getSchemaVersion()
java.lang.String[] getAllDataFileLocations()
java.lang.String getCommitLogLocation()
java.lang.String getSavedCachesLocation()
java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> getRangeToEndpointMap(java.lang.String keyspace)
java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> getRangeToRpcaddressMap(java.lang.String keyspace)
java.util.List<java.lang.String> describeRingJMX(java.lang.String keyspace) throws java.io.IOException
describeRing(String)
but converts TokenRange to the String for JMX compatibility
keyspace
- The keyspace to fetch information about
java.io.IOException
java.util.List<java.lang.String> getPrimaryRange()
java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> getPendingRangeToEndpointMap(java.lang.String keyspace)
keyspace
- the keyspace to get the pending range map for.
java.util.Map<java.lang.String,java.lang.String> getTokenToEndpointMap()
java.lang.String getLocalHostId()
java.util.Map<java.lang.String,java.lang.String> getHostIdMap()
@Deprecated double getLoad()
StorageMetrics.load
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, java.lang.String cf, java.lang.String key)
table
- keyspace name also known as tablecf
- Column family namekey
- - key for which we need to find the endpoint return value -
the endpoint responsible for this keyjava.util.List<java.net.InetAddress> getNaturalEndpoints(java.lang.String table, java.nio.ByteBuffer key)
void takeSnapshot(java.lang.String tag, java.lang.String... tableNames) throws java.io.IOException
tag
- the tag given to the snapshot; may not be null or emptytableNames
- the name of the tables to snapshot; empty means "all."
java.io.IOException
void takeColumnFamilySnapshot(java.lang.String tableName, java.lang.String columnFamilyName, java.lang.String tag) throws java.io.IOException
tableName
- the keyspace which holds the specified column familycolumnFamilyName
- the column family to snapshottag
- the tag given to the snapshot; may not be null or empty
java.io.IOException
void clearSnapshot(java.lang.String tag, java.lang.String... tableNames) 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 scrub(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 upgradeSSTables(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, boolean isSequential, boolean isLocal, java.lang.String... columnFamilies) throws java.io.IOException
tableName
- columnFamilies
-
java.io.IOException
void forceTableRepairPrimaryRange(java.lang.String tableName, boolean isSequential, boolean isLocal, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
void forceTableRepairRange(java.lang.String beginToken, java.lang.String endToken, java.lang.String tableName, boolean isSequential, boolean isLocal, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
void forceTerminateAllRepairSessions()
void decommission() throws java.lang.InterruptedException
java.lang.InterruptedException
void move(java.lang.String newToken) throws java.io.IOException
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
void relocate(java.util.Collection<java.lang.String> srcTokens) throws java.io.IOException
srcTokens
- tokens to move to this node
java.io.IOException
void removeNode(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 truncate(java.lang.String keyspace, java.lang.String columnFamily) throws java.util.concurrent.TimeoutException, java.io.IOException
keyspace
- The keyspace to delete fromcolumnFamily
- The column family to delete data from.
java.util.concurrent.TimeoutException
java.io.IOException
java.util.Map<java.net.InetAddress,java.lang.Float> getOwnership()
java.util.Map<java.net.InetAddress,java.lang.Float> effectiveOwnership(java.lang.String keyspace) throws java.lang.IllegalStateException
java.lang.IllegalStateException
java.util.List<java.lang.String> getKeyspaces()
void updateSnitch(java.lang.String epSnitchClassName, java.lang.Boolean dynamic, java.lang.Integer dynamicUpdateInterval, java.lang.Integer dynamicResetInterval, java.lang.Double dynamicBadnessThreshold) throws java.lang.ClassNotFoundException
epSnitchClassName
- the canonical path name for a class implementing IEndpointSnitchdynamic
- boolean that decides whether dynamicsnitch is used or notdynamicUpdateInterval
- integer, in ms (default 100)dynamicResetInterval
- integer, in ms (default 600,000)dynamicBadnessThreshold
- double, (default 0.0)
java.lang.ClassNotFoundException
void stopGossiping()
void startGossiping()
boolean isInitialized()
void stopRPCServer()
void startRPCServer()
boolean isRPCServerRunning()
void stopNativeTransport()
void startNativeTransport()
boolean isNativeTransportRunning()
void joinRing() throws java.io.IOException
java.io.IOException
boolean isJoined()
int getExceptionCount()
void setStreamThroughputMbPerSec(int value)
int getStreamThroughputMbPerSec()
int getCompactionThroughputMbPerSec()
void setCompactionThroughputMbPerSec(int value)
boolean isIncrementalBackupsEnabled()
void setIncrementalBackupsEnabled(boolean value)
void rebuild(java.lang.String sourceDc)
sourceDc
- Name of DC from which to select sources for streaming or null to pick any nodevoid bulkLoad(java.lang.String directory)
void rescheduleFailedDeletions()
void loadNewSSTables(java.lang.String ksName, java.lang.String cfName)
ksName
- The parent keyspace namecfName
- The ColumnFamily name where SSTables belongjava.util.List<java.lang.String> sampleKeyRange()
void rebuildSecondaryIndex(java.lang.String ksName, java.lang.String cfName, java.lang.String... idxNames)
void resetLocalSchema() throws java.io.IOException
java.io.IOException
void setTraceProbability(double probability)
probability
- ]0,1[ will enable tracing on a partial number of requests with the provided probability. 0 will
disable tracing and 1 will enable tracing for all requests (which mich severely cripple the system)double getTracingProbability()
void enableScheduledRangeXfers()
void disableScheduledRangeXfers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |