Crossfire JXClient, Trunk
|
Static Public Member Functions | |
static void | main (String[] args) |
Static Public Attributes | |
static final String | USAGE |
Private Member Functions | |
ScanDirClient () | |
The ScanDirClient class is a very simple programmatic client example which is able to connect to a secured JMX scandir application.
The program initialize the connection environment map with the appropriate properties and credentials, and then connects to the secure JMX scandir daemon.
It gets the application's current configuration and prints it on its System.out
.
The main method takes two arguments: the host on which the server is running (localhost), and the port number that was configured to start the server RMI Connector (4545).
Definition at line 67 of file ScanDirClient.java.
|
private |
Definition at line 70 of file ScanDirClient.java.
|
static |
Connects to a secured JMX scandir application.
args | The method takes two parameters:
|
Definition at line 90 of file ScanDirClient.java.
References com.sun.jmx.examples.scandir.ScanManagerMXBean.close(), env, com.sun.jmx.examples.scandir.ScanDirConfigMXBean.getConfiguration(), com.sun.jmx.examples.scandir.ScanManagerMXBean.getConfigurationMBean(), com.sun.jmx.examples.scandir.ScanManager.newSingletonProxy(), and com.sun.jmx.examples.scandir.ScanDirClient.USAGE.
|
static |
The usage string for the ScanDirClient.
Definition at line 75 of file ScanDirClient.java.
Referenced by com.sun.jmx.examples.scandir.ScanDirClient.main().