|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.simplejmx.client.CommandLineJmxClient
public class CommandLineJmxClient
Command-line client that can be used to support interactive or batch-file JMX operations. It can be used with the
Main
class as a jmx client out of the SimpleJMX jar directly.
See the helpOutput()
and exampleOutput()
methods for
extensive help/usage information.
Constructor Summary | |
---|---|
CommandLineJmxClient(int port)
Create a command line interface connected to the local host at a certain port number. |
|
CommandLineJmxClient(JmxClient jmxClient)
Create a command line interface on the passed in client. |
|
CommandLineJmxClient(String jmxUrl)
Create a command line interface connected to a JMX server using the full JMX URL format. |
|
CommandLineJmxClient(String host,
int port)
Create a command line interface connected to a host and port combination. |
Method Summary | |
---|---|
void |
close()
Close the associated Jmx client. |
void |
runBatchFile(File batchFile)
Read in commands from the batch-file and execute them. |
void |
runCommandLine()
Run the Jmx command line client reading commands from System.in . |
void |
runCommands(String[] commands)
Run commands from the String array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandLineJmxClient(JmxClient jmxClient)
public CommandLineJmxClient(int port) throws JMException
JMException
public CommandLineJmxClient(String host, int port) throws JMException
JMException
public CommandLineJmxClient(String jmxUrl) throws JMException
service:jmx:rmi:///jndi/rmi://hostName:portNumber/jmxrmi
JMException
Method Detail |
---|
public void runCommands(String[] commands) throws IOException
IOException
public void runBatchFile(File batchFile) throws IOException
IOException
public void runCommandLine() throws IOException
System.in
.
IOException
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |