public class CommandLineJmxClient extends Object
Main
class as a jmx client out of the SimpleJMX jar directly.
See the helpOutput()
and exampleOutput()
methods for
extensive help/usage information.
Constructor and Description |
---|
CommandLineJmxClient(InetAddress address,
int port)
Connect the client to an address and port combination.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CommandLineJmxClient(JmxClient jmxClient)
public CommandLineJmxClient(int port) throws JMException
JMException
public CommandLineJmxClient(String host, int port) throws JMException
JMException
public CommandLineJmxClient(InetAddress address, int port) throws JMException
JMException
public CommandLineJmxClient(String jmxUrl) throws JMException
Create a command line interface connected to a JMX server using the full JMX URL format. The URL should look something like:
service:jmx:rmi:///jndi/rmi://hostName:portNumber/jmxrmi
JMException
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()
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.