|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.tools.NodeProbe
public class NodeProbe
JMX client operations for Cassandra.
Field Summary | |
---|---|
MessagingServiceMBean |
msProxy
|
Constructor Summary | |
---|---|
NodeProbe(java.lang.String host)
Creates a NodeProbe using the specified JMX host and default port. |
|
NodeProbe(java.lang.String host,
int port)
Creates a NodeProbe using the specified JMX host and port. |
|
NodeProbe(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Creates a NodeProbe using the specified JMX host, port, username, and password. |
Method Summary | |
---|---|
void |
clearSnapshot(java.lang.String tag,
java.lang.String... keyspaces)
Remove all the existing snapshots. |
void |
close()
|
void |
decommission()
|
java.util.List<java.lang.String> |
describeRing(java.lang.String keyspaceName)
|
void |
drain()
|
java.util.Map<java.net.InetAddress,java.lang.Float> |
effectiveOwnership(java.lang.String keyspace)
|
void |
forceRemoveCompletion()
|
void |
forceTableCleanup(java.lang.String tableName,
java.lang.String... columnFamilies)
|
void |
forceTableCompaction(java.lang.String tableName,
java.lang.String... columnFamilies)
|
void |
forceTableFlush(java.lang.String tableName,
java.lang.String... columnFamilies)
|
void |
forceTableRepair(java.lang.String tableName,
boolean isSequential,
boolean isLocal,
java.lang.String... columnFamilies)
|
void |
forceTableRepairPrimaryRange(java.lang.String tableName,
boolean isSequential,
boolean isLocal,
java.lang.String... columnFamilies)
|
void |
forceTableRepairRange(java.lang.String beginToken,
java.lang.String endToken,
java.lang.String tableName,
boolean isSequential,
boolean isLocal,
java.lang.String... columnFamilies)
|
CacheServiceMBean |
getCacheServiceMBean()
|
ColumnFamilyStoreMBean |
getCfsProxy(java.lang.String ks,
java.lang.String cf)
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,ColumnFamilyStoreMBean>> |
getColumnFamilyStoreMBeanProxies()
|
CompactionManagerMBean |
getCompactionManagerProxy()
|
void |
getCompactionThreshold(java.io.PrintStream outs,
java.lang.String ks,
java.lang.String cf)
Get the compaction threshold |
int |
getCompactionThroughput()
|
int |
getCurrentGenerationNumber()
|
java.lang.String |
getDataCenter()
|
java.util.Map<java.lang.String,java.lang.Integer> |
getDroppedMessages()
|
java.lang.String |
getEndpoint()
|
java.util.List<java.net.InetAddress> |
getEndpoints(java.lang.String keyspace,
java.lang.String cf,
java.lang.String key)
|
EndpointSnitchInfoMBean |
getEndpointSnitchInfoProxy()
|
int |
getExceptionCount()
|
java.util.List<java.lang.String> |
getFilesDestinedFor(java.net.InetAddress host)
|
java.lang.String |
getGossipInfo()
|
java.lang.management.MemoryUsage |
getHeapMemoryUsage()
|
java.util.Map<java.lang.String,java.lang.String> |
getHostIdMap()
|
java.util.List<java.lang.String> |
getIncomingFiles(java.net.InetAddress host)
|
java.util.List<java.lang.String> |
getJoiningNodes()
|
java.util.List<java.lang.String> |
getKeyspaces()
|
java.util.List<java.lang.String> |
getLeavingNodes()
|
java.util.List<java.lang.String> |
getLiveNodes()
|
java.util.Map<java.lang.String,java.lang.String> |
getLoadMap()
|
java.lang.String |
getLoadString()
|
java.lang.String |
getLocalHostId()
|
java.util.List<java.lang.String> |
getMovingNodes()
|
java.lang.String |
getOperationMode()
|
java.util.Map<java.net.InetAddress,java.lang.Float> |
getOwnership()
|
PBSPredictorMBean |
getPBSPredictorMBean()
|
java.lang.String |
getRack()
|
java.lang.String |
getReleaseVersion()
|
java.lang.String |
getRemovalStatus()
|
java.lang.String |
getSchemaVersion()
|
StorageProxyMBean |
getSpProxy()
|
java.util.List<java.lang.String> |
getSSTables(java.lang.String keyspace,
java.lang.String cf,
java.lang.String key)
|
java.util.Set<java.net.InetAddress> |
getStreamDestinations()
|
java.util.Set<java.net.InetAddress> |
getStreamSources()
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,JMXEnabledThreadPoolExecutorMBean>> |
getThreadPoolMBeanProxies()
|
java.util.List<java.lang.String> |
getTokens()
|
java.util.List<java.lang.String> |
getTokens(java.lang.String endpoint)
|
java.util.Map<java.lang.String,java.lang.String> |
getTokenToEndpointMap()
|
java.util.List<java.lang.String> |
getUnreachableNodes()
|
long |
getUptime()
|
void |
invalidateKeyCache()
|
void |
invalidateRowCache()
|
boolean |
isInitialized()
|
boolean |
isJoined()
|
boolean |
isThriftServerRunning()
|
void |
joinRing()
|
void |
loadNewSSTables(java.lang.String ksName,
java.lang.String cfName)
|
void |
move(java.lang.String newToken)
|
void |
rebuild(java.lang.String sourceDc)
|
void |
rebuildIndex(java.lang.String ksName,
java.lang.String cfName,
java.lang.String... idxNames)
|
void |
removeNode(java.lang.String token)
|
void |
resetLocalSchema()
|
java.util.List<java.lang.String> |
sampleKeyRange()
|
void |
scrub(java.lang.String tableName,
java.lang.String... columnFamilies)
|
void |
setCacheCapacities(int keyCacheCapacity,
int rowCacheCapacity)
|
void |
setCompactionThreshold(java.lang.String ks,
java.lang.String cf,
int minimumCompactionThreshold,
int maximumCompactionThreshold)
Set the compaction threshold |
void |
setCompactionThroughput(int value)
|
void |
setStreamThroughput(int value)
|
void |
setTraceProbability(double value)
|
void |
startGossiping()
|
void |
startThriftServer()
|
void |
stop(java.lang.String string)
|
void |
stopGossiping()
|
void |
stopThriftServer()
|
void |
takeSnapshot(java.lang.String snapshotName,
java.lang.String columnFamily,
java.lang.String... keyspaces)
Take a snapshot of all the tables, optionally specifying only a specific column family. |
void |
truncate(java.lang.String tableName,
java.lang.String cfName)
|
void |
upgradeSSTables(java.lang.String tableName,
java.lang.String... columnFamilies)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public MessagingServiceMBean msProxy
Constructor Detail |
---|
public NodeProbe(java.lang.String host, int port, java.lang.String username, java.lang.String password) throws java.io.IOException, java.lang.InterruptedException
host
- hostname or IP address of the JMX agentport
- TCP port of the remote JMX agent
java.io.IOException
- on connection failures
java.lang.InterruptedException
public NodeProbe(java.lang.String host, int port) throws java.io.IOException, java.lang.InterruptedException
host
- hostname or IP address of the JMX agentport
- TCP port of the remote JMX agent
java.io.IOException
- on connection failures
java.lang.InterruptedException
public NodeProbe(java.lang.String host) throws java.io.IOException, java.lang.InterruptedException
host
- hostname or IP address of the JMX agent
java.io.IOException
- on connection failures
java.lang.InterruptedException
Method Detail |
---|
public void close() throws java.io.IOException
java.io.IOException
public 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
public 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
public 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
public 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
public void forceTableFlush(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
public void forceTableRepair(java.lang.String tableName, boolean isSequential, boolean isLocal, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void forceTableRepairPrimaryRange(java.lang.String tableName, boolean isSequential, boolean isLocal, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public 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
public void invalidateKeyCache() throws java.io.IOException
java.io.IOException
public void invalidateRowCache() throws java.io.IOException
java.io.IOException
public void drain() throws java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public java.util.Map<java.lang.String,java.lang.String> getTokenToEndpointMap()
public java.util.List<java.lang.String> getLiveNodes()
public java.util.List<java.lang.String> getJoiningNodes()
public java.util.List<java.lang.String> getLeavingNodes()
public java.util.List<java.lang.String> getMovingNodes()
public java.util.List<java.lang.String> getUnreachableNodes()
public java.util.Map<java.lang.String,java.lang.String> getLoadMap()
public java.util.Map<java.net.InetAddress,java.lang.Float> getOwnership()
public java.util.Map<java.net.InetAddress,java.lang.Float> effectiveOwnership(java.lang.String keyspace) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public CacheServiceMBean getCacheServiceMBean()
public java.util.Iterator<java.util.Map.Entry<java.lang.String,ColumnFamilyStoreMBean>> getColumnFamilyStoreMBeanProxies()
public CompactionManagerMBean getCompactionManagerProxy()
public java.util.List<java.lang.String> getTokens()
public java.util.List<java.lang.String> getTokens(java.lang.String endpoint)
public java.lang.String getLocalHostId()
public java.util.Map<java.lang.String,java.lang.String> getHostIdMap()
public java.lang.String getLoadString()
public java.lang.String getReleaseVersion()
public int getCurrentGenerationNumber()
public long getUptime()
public java.lang.management.MemoryUsage getHeapMemoryUsage()
public void takeSnapshot(java.lang.String snapshotName, java.lang.String columnFamily, java.lang.String... keyspaces) throws java.io.IOException
snapshotName
- the name of the snapshot.columnFamily
- the column family to snapshot or all on nullkeyspaces
- the keyspaces to snapshot
java.io.IOException
public void clearSnapshot(java.lang.String tag, java.lang.String... keyspaces) throws java.io.IOException
java.io.IOException
public boolean isJoined()
public void joinRing() throws java.io.IOException
java.io.IOException
public void decommission() throws java.lang.InterruptedException
java.lang.InterruptedException
public void move(java.lang.String newToken) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void removeNode(java.lang.String token)
public java.lang.String getRemovalStatus()
public void forceRemoveCompletion()
public java.util.Iterator<java.util.Map.Entry<java.lang.String,JMXEnabledThreadPoolExecutorMBean>> getThreadPoolMBeanProxies()
public void getCompactionThreshold(java.io.PrintStream outs, java.lang.String ks, java.lang.String cf)
outs
- the stream to write topublic void setCompactionThreshold(java.lang.String ks, java.lang.String cf, int minimumCompactionThreshold, int maximumCompactionThreshold)
minimumCompactionThreshold
- minimum compaction thresholdmaximumCompactionThreshold
- maximum compaction thresholdpublic void setCacheCapacities(int keyCacheCapacity, int rowCacheCapacity)
public java.util.List<java.net.InetAddress> getEndpoints(java.lang.String keyspace, java.lang.String cf, java.lang.String key)
public java.util.List<java.lang.String> getSSTables(java.lang.String keyspace, java.lang.String cf, java.lang.String key)
public java.util.Set<java.net.InetAddress> getStreamDestinations()
public java.util.List<java.lang.String> getFilesDestinedFor(java.net.InetAddress host) throws java.io.IOException
java.io.IOException
public java.util.Set<java.net.InetAddress> getStreamSources()
public java.util.List<java.lang.String> getIncomingFiles(java.net.InetAddress host) throws java.io.IOException
java.io.IOException
public java.lang.String getOperationMode()
public void truncate(java.lang.String tableName, java.lang.String cfName)
public EndpointSnitchInfoMBean getEndpointSnitchInfoProxy()
public ColumnFamilyStoreMBean getCfsProxy(java.lang.String ks, java.lang.String cf)
public StorageProxyMBean getSpProxy()
public java.lang.String getEndpoint()
public java.lang.String getDataCenter()
public java.lang.String getRack()
public java.util.List<java.lang.String> getKeyspaces()
public void stopGossiping()
public void startGossiping()
public void stopThriftServer()
public void startThriftServer()
public boolean isThriftServerRunning()
public boolean isInitialized()
public void setCompactionThroughput(int value)
public int getCompactionThroughput()
public int getExceptionCount()
public java.util.Map<java.lang.String,java.lang.Integer> getDroppedMessages()
public void loadNewSSTables(java.lang.String ksName, java.lang.String cfName)
public void rebuildIndex(java.lang.String ksName, java.lang.String cfName, java.lang.String... idxNames)
public java.lang.String getGossipInfo()
public void stop(java.lang.String string)
public void setStreamThroughput(int value)
public void setTraceProbability(double value)
public java.lang.String getSchemaVersion()
public java.util.List<java.lang.String> describeRing(java.lang.String keyspaceName) throws java.io.IOException
java.io.IOException
public PBSPredictorMBean getPBSPredictorMBean()
public void rebuild(java.lang.String sourceDc)
public java.util.List<java.lang.String> sampleKeyRange()
public void resetLocalSchema() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |