|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.tools.ClusterCmd
public class ClusterCmd
JMX cluster wide operations for Cassandra.
Constructor Summary | |
---|---|
ClusterCmd(java.lang.String host)
Creates a ClusterProbe using the specified JMX host and default port. |
|
ClusterCmd(java.lang.String host,
int port)
Creates a ClusterProbe using the specified JMX host and port. |
Method Summary | |
---|---|
void |
clearGlobalSnapshot()
Remove all the existing snapshots from all (live) nodes in the cluster |
void |
close()
|
static void |
main(java.lang.String[] args)
|
void |
printEndpoints(java.lang.String keyspace,
java.lang.String key)
|
void |
takeGlobalSnapshot(java.lang.String snapshotName)
Take a snapshot of all tables on all (live) nodes in the cluster |
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 |
Constructor Detail |
---|
public ClusterCmd(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 ClusterCmd(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 printEndpoints(java.lang.String keyspace, java.lang.String key)
public void takeGlobalSnapshot(java.lang.String snapshotName) throws java.io.IOException, java.lang.InterruptedException
snapshotName
- name of the snapshot
java.io.IOException
java.lang.InterruptedException
public void clearGlobalSnapshot() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void truncate(java.lang.String tableName, java.lang.String cfName)
public 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 |