public class Shuffle extends AbstractJmxClient
DEFAULT_HOST, DEFAULT_JMX_PORT, host, jmxConn, out, password, port, username| Constructor and Description |
|---|
Shuffle(java.lang.String host,
int port,
java.lang.String thriftHost,
int thriftPort,
boolean thriftFramed,
java.lang.String jmxUsername,
java.lang.String jmxPassword,
java.lang.String thriftUsername,
java.lang.String thriftPassword) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear pending token relocations on all nodes.
|
void |
disable()
Disable shuffling on all nodes in the cluster.
|
void |
enable()
Enable shuffling on all nodes in the cluster.
|
void |
ls()
Print a list of pending token relocations for all nodes.
|
static void |
main(java.lang.String[] args)
Execute.
|
void |
shuffle(boolean enable,
java.lang.String onlyDc)
Create and distribute a new, randomized token to endpoint mapping.
|
addCmdOption, close, printHelp, processArguments, setOutput, write, write, writeln, writeln, writelnpublic Shuffle(java.lang.String host,
int port,
java.lang.String thriftHost,
int thriftPort,
boolean thriftFramed,
java.lang.String jmxUsername,
java.lang.String jmxPassword,
java.lang.String thriftUsername,
java.lang.String thriftPassword)
throws java.io.IOException
java.io.IOExceptionpublic void shuffle(boolean enable,
java.lang.String onlyDc)
throws org.apache.cassandra.tools.Shuffle.ShuffleError
ShuffleError - on handled exceptionsorg.apache.cassandra.tools.Shuffle.ShuffleErrorpublic void ls()
throws org.apache.cassandra.tools.Shuffle.ShuffleError
ShuffleErrororg.apache.cassandra.tools.Shuffle.ShuffleErrorpublic void clear()
throws org.apache.cassandra.tools.Shuffle.ShuffleError
ShuffleErrororg.apache.cassandra.tools.Shuffle.ShuffleErrorpublic void enable()
throws org.apache.cassandra.tools.Shuffle.ShuffleError
ShuffleErrororg.apache.cassandra.tools.Shuffle.ShuffleErrorpublic void disable()
throws org.apache.cassandra.tools.Shuffle.ShuffleError
ShuffleErrororg.apache.cassandra.tools.Shuffle.ShuffleErrorpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - arguments passed on the command linejava.lang.Exception - when face meets palmCopyright © 2014 The Apache Software Foundation