Crossfire JXClient, Trunk
Static Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
com.sun.jmx.examples.scandir.ScanDirClient Class Reference
Collaboration diagram for com.sun.jmx.examples.scandir.ScanDirClient:
Collaboration graph

Static Public Member Functions

static void main (String[] args)
 

Static Public Attributes

static final String USAGE
 

Private Member Functions

 ScanDirClient ()
 

Detailed Description

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).

Author
Sun Microsystems, 2006 - All rights reserved.

Definition at line 67 of file ScanDirClient.java.

Constructor & Destructor Documentation

◆ ScanDirClient()

com.sun.jmx.examples.scandir.ScanDirClient.ScanDirClient ( )
private

Definition at line 70 of file ScanDirClient.java.

Member Function Documentation

◆ main()

static void com.sun.jmx.examples.scandir.ScanDirClient.main ( String[]  args)
static

Connects to a secured JMX scandir application.

Parameters
argsThe method takes two parameters:
  • args[0] must be the server's host
  • args[1] must be the rmi port number at which the JMX scandir daemon is listening for connections
    • that is, the port number of its JMX RMI Connector which was configured in
      management.properties

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.

Here is the call graph for this function:

Member Data Documentation

◆ USAGE

final String com.sun.jmx.examples.scandir.ScanDirClient.USAGE
static
Initial value:
= ScanDirClient.class.getSimpleName() +
" <server-host> <rmi-port-number>"

The usage string for the ScanDirClient.

Definition at line 75 of file ScanDirClient.java.

Referenced by com.sun.jmx.examples.scandir.ScanDirClient.main().


The documentation for this class was generated from the following file:
com.sun.jmx.examples.scandir.ScanDirClient.main
static void main(String[] args)
Definition: ScanDirClient.java:90
com.sun.jmx.examples.scandir.ScanDirClient.ScanDirClient
ScanDirClient()
Definition: ScanDirClient.java:70