PMI client package

PMI client package provides a wrapper class PmiClient to deliver PMI data to a client.

PmiClient uses the AdminClient API to communicate the Perf MBean in an appserver.

Performance Monitoring Infrastructure and Java Management Extensions The PmiClient API does not work if the JMX infrastructure and Perf MBean are not running. If you prefer to use the AdminClient API directly to retrieve PMI data, you still have a dependency on the JMX infrastructure.

When using the PmiClient API, you have to pass the JMX connector protocol and port number to instantiate an object of the PmiClient. Once you get a PmiClient object, you can call its methods to list nodes, servers and MBeans, set the monitoring level, and retrieve PMI data.

The PmiClient API creates an instance of the AdminClient API and delegates your requests to the AdminClient API. The AdminClient API uses the JMX connector to communicate with the PerfMBean in the corresponding server and then returns the data to the PmiClient, which returns the data to the client.

 

See Also

Running your new monitoring applications