|
||||||||||
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.
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)
|
void |
getCompactionThreshold(java.io.PrintStream outs)
Get the compaction threshold |
void |
loadBalance()
|
static void |
main(java.lang.String[] args)
|
void |
move(java.lang.String newToken)
|
void |
printColumnFamilyStats(java.io.PrintStream outs)
|
void |
printInfo(java.io.PrintStream outs)
Write node information. |
void |
printRing(java.io.PrintStream outs)
Write a textual representation of the Cassandra ring. |
void |
printThreadPoolStats(java.io.PrintStream outs)
Print out the size of the queues in the thread pools |
void |
removeToken(java.lang.String token)
|
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 void printRing(java.io.PrintStream outs)
outs
- the stream to write topublic void printColumnFamilyStats(java.io.PrintStream outs)
public void printInfo(java.io.PrintStream outs)
outs
- the stream to write topublic 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 void printThreadPoolStats(java.io.PrintStream outs)
outs
- Output stream to generate the output on.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 static void main(java.lang.String[] args) throws java.io.IOException, java.lang.InterruptedException
args
-
java.io.IOException
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |