Use PMI client to develop the monitoring application (deprecated)


 

+

Search Tips   |   Advanced Search

 

Use the Performance Monitoring Infrastructure (PMI) interfaces to develop your own applications.

The following is the model for PMI client:

  1. Create an instance of PmiClient.

    This is used for all subsequent method calls.

  2. We can create our own MBeans. Refer to Extending the WAS admin system with custom MBeans.

  3. Call the listNodes() and listServers(nodeName) methods to find all the nodes and servers in the WAS domain.

    The PMI client provides two sets of methods: one set in V5.0 and the other set inherited from V4.0. We can only use one set of methods. Do not mix them together.

  4. Call listMBeans and listStatMembers to get all the available MBeans and MBeanStatDescriptors.

  5. Call the getStats method to get the Stats object for the PMI data.

  6. The client can also call setStatLevel or getStatLevel to set and get the monitoring level. Use the MBeanLevelSpec objects to set monitoring levels.

 

Next steps

If we prefer to use the V4.0 interface, the model is essentially the same, but the object types are different:

  1. Create an instance of PmiClient.

  2. Find all the nodes and servers in the WAS domain using...

  3. Call listMembers to get all the perfDescriptor objects.

  4. Use the PMI client's get or gets method to get CpdCollection objects.

    These contain snapshots of performance data from the server. The same structure is maintained and its update method is used to refresh the data.

  5. (Optional) The client can also call setInstrumentationLevel or getInstrumentationLevel to set and get the monitoring level.


Performance Monitoring Infrastructure client (WebSphere V4.0)
Example: Performance Monitoring Infrastructure client (Version 4.0)
Example: Performance Monitoring Infrastructure client with new data structure

 

Related

Performance Monitoring Infrastructure client package
PMI client interface (deprecated)