Package org.apache.cassandra.tools
Class AbstractJmxClient
java.lang.Object
org.apache.cassandra.tools.AbstractJmxClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final intprotected final Stringprotected org.apache.cassandra.tools.JMXConnectionprotected PrintStreamprotected final Stringprotected final intprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJmxClient(String host, Integer port, String username, String password) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCmdOption(String shortOpt, String longOpt, boolean hasArg, String description) voidclose()static voidstatic org.apache.commons.cli.CommandLineprocessArguments(String[] args) voidsetOutput(PrintStream out) voidvoidvoidvoidvoid
-
Field Details
-
DEFAULT_JMX_PORT
protected static final int DEFAULT_JMX_PORT- See Also:
-
DEFAULT_HOST
- See Also:
-
host
-
port
protected final int port -
username
-
password
-
jmxConn
protected org.apache.cassandra.tools.JMXConnection jmxConn -
out
-
-
Constructor Details
-
AbstractJmxClient
public AbstractJmxClient(String host, Integer port, String username, String password) throws IOException - Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
writeln
-
writeln
-
write
-
writeln
-
write
-
setOutput
-
processArguments
public static org.apache.commons.cli.CommandLine processArguments(String[] args) throws org.apache.commons.cli.ParseException - Throws:
org.apache.commons.cli.ParseException
-
addCmdOption
-
printHelp
-