|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cassandra.tools.NodeProbe
public class NodeProbe
JMX client operations for Cassandra.
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. |
Method Summary | |
---|---|
void |
clearSnapshot()
Remove all the existing snapshots. |
void |
decommission()
|
void |
forceTableCleanup()
|
void |
forceTableCompaction()
|
void |
forceTableFlush(java.lang.String tableName,
java.lang.String... columnFamilies)
|
void |
forceTableRepair(java.lang.String tableName,
java.lang.String... columnFamilies)
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,ColumnFamilyStoreMBean>> |
getColumnFamilyStoreMBeanProxies()
|
void |
getCompactionThreshold(java.io.PrintStream outs)
Get the compaction threshold |
int |
getCurrentGenerationNumber()
|
java.util.List<java.net.InetAddress> |
getEndPoints(java.lang.String key,
java.lang.String table)
|
java.util.List<java.lang.String> |
getFilesDestinedFor(java.net.InetAddress host)
|
java.lang.management.MemoryUsage |
getHeapMemoryUsage()
|
java.util.List<java.lang.String> |
getIncomingFiles(java.net.InetAddress host)
|
JMXInstrumentedCacheMBean |
getKeyCacheMBean(java.lang.String tableName,
java.lang.String cfName)
|
java.util.Set<java.lang.String> |
getLiveNodes()
|
java.util.Map<java.lang.String,java.lang.String> |
getLoadMap()
|
java.lang.String |
getLoadString()
|
java.lang.String |
getOperationMode()
|
java.util.Map<Range,java.util.List<java.lang.String>> |
getRangeToEndPointMap(java.lang.String tableName)
|
JMXInstrumentedCacheMBean |
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,IExecutorMBean>> |
getThreadPoolMBeanProxies()
|
java.lang.String |
getToken()
|
java.util.Set<java.lang.String> |
getUnreachableNodes()
|
long |
getUptime()
|
void |
loadBalance()
|
void |
move(java.lang.String newToken)
|
void |
printRing(java.io.PrintStream outs)
Write a textual representation of the Cassandra ring. |
void |
removeToken(java.lang.String token)
|
void |
setCacheCapacities(java.lang.String tableName,
java.lang.String cfName,
int keyCacheCapacity,
int rowCacheCapacity)
|
void |
setCompactionThreshold(int minimumCompactionThreshold,
int maximumCompactionThreshold)
Set the compaction threshold |
void |
takeSnapshot(java.lang.String snapshotName)
Take a snapshot of all the tables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 forceTableCleanup() throws java.io.IOException
java.io.IOException
public void forceTableCompaction() throws java.io.IOException
java.io.IOException
public void forceTableFlush(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void forceTableRepair(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public java.util.Map<Range,java.util.List<java.lang.String>> getRangeToEndPointMap(java.lang.String tableName)
public java.util.Set<java.lang.String> getLiveNodes()
public void printRing(java.io.PrintStream outs)
outs
- the stream to write topublic java.util.Set<java.lang.String> getUnreachableNodes()
public java.util.Map<java.lang.String,java.lang.String> getLoadMap()
public java.util.Iterator<java.util.Map.Entry<java.lang.String,ColumnFamilyStoreMBean>> getColumnFamilyStoreMBeanProxies()
public JMXInstrumentedCacheMBean getKeyCacheMBean(java.lang.String tableName, java.lang.String cfName)
public JMXInstrumentedCacheMBean getRowCacheMBean(java.lang.String tableName, java.lang.String cfName)
public java.lang.String getToken()
public java.lang.String getLoadString()
public int getCurrentGenerationNumber()
public long getUptime()
public java.lang.management.MemoryUsage getHeapMemoryUsage()
public void takeSnapshot(java.lang.String snapshotName) throws java.io.IOException
snapshotName
- the name of the snapshot.
java.io.IOException
public void clearSnapshot() throws java.io.IOException
java.io.IOException
public void decommission() throws java.lang.InterruptedException
java.lang.InterruptedException
public void loadBalance() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
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 removeToken(java.lang.String token)
public java.util.Iterator<java.util.Map.Entry<java.lang.String,IExecutorMBean>> getThreadPoolMBeanProxies()
public void getCompactionThreshold(java.io.PrintStream outs)
outs
- the stream to write topublic void setCompactionThreshold(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 key, java.lang.String table)
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |