|
||||||||||
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()
|
void |
drain()
|
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,
java.lang.String... columnFamilies)
|
void |
forceTableRepairPrimaryRange(java.lang.String tableName,
java.lang.String... columnFamilies)
|
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 |
getCurrentGenerationNumber()
|
java.lang.String |
getDataCenter()
|
java.util.Map<java.lang.String,java.lang.Integer> |
getDroppedMessages()
|
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.List<java.lang.String> |
getIncomingFiles(java.net.InetAddress host)
|
java.util.List<java.lang.String> |
getJoiningNodes()
|
InstrumentingCacheMBean |
getKeyCacheMBean(java.lang.String tableName,
java.lang.String cfName)
|
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.util.List<java.lang.String> |
getMovingNodes()
|
java.lang.String |
getOperationMode()
|
java.util.Map<Token,java.lang.Float> |
getOwnership()
|
java.lang.String |
getRack()
|
java.lang.String |
getReleaseVersion()
|
java.lang.String |
getRemovalStatus()
|
InstrumentingCacheMBean |
getRowCacheMBean(java.lang.String tableName,
java.lang.String cfName)
|
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.lang.String |
getToken()
|
java.util.Map<Token,java.lang.String> |
getTokenToEndpointMap()
|
java.util.List<java.lang.String> |
getUnreachableNodes()
|
long |
getUptime()
|
void |
invalidateKeyCaches(java.lang.String tableName,
java.lang.String... columnFamilies)
|
void |
invalidateRowCaches(java.lang.String tableName,
java.lang.String... columnFamilies)
|
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 |
removeToken(java.lang.String token)
|
void |
scrub(java.lang.String tableName,
java.lang.String... columnFamilies)
|
void |
setCacheCapacities(java.lang.String tableName,
java.lang.String cfName,
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 |
startGossiping()
|
void |
startThriftServer()
|
void |
stopGossiping()
|
void |
stopThriftServer()
|
void |
takeSnapshot(java.lang.String snapshotName,
java.lang.String... keyspaces)
Take a snapshot of all the tables. |
void |
truncate(java.lang.String tableName,
java.lang.String cfName)
|
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 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, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void forceTableRepairPrimaryRange(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void invalidateKeyCaches(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void invalidateRowCaches(java.lang.String tableName, java.lang.String... columnFamilies) 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<Token,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<Token,java.lang.Float> getOwnership()
public java.util.Iterator<java.util.Map.Entry<java.lang.String,ColumnFamilyStoreMBean>> getColumnFamilyStoreMBeanProxies()
public CompactionManagerMBean getCompactionManagerProxy()
public InstrumentingCacheMBean getKeyCacheMBean(java.lang.String tableName, java.lang.String cfName)
public InstrumentingCacheMBean getRowCacheMBean(java.lang.String tableName, java.lang.String cfName)
public java.lang.String getToken()
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... keyspaces) throws java.io.IOException
snapshotName
- the name of the 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, ConfigurationException
java.io.IOException
ConfigurationException
public void decommission() throws java.lang.InterruptedException
java.lang.InterruptedException
public void move(java.lang.String newToken) throws java.io.IOException, java.lang.InterruptedException, ConfigurationException
java.io.IOException
java.lang.InterruptedException
ConfigurationException
public void removeToken(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(java.lang.String tableName, java.lang.String cfName, 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.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 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 getExceptionCount()
public java.util.Map<java.lang.String,java.lang.Integer> getDroppedMessages()
public void loadNewSSTables(java.lang.String ksName, java.lang.String cfName)
public java.lang.String getGossipInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |