WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Using PMI client to develop your monitoring application (deprecated)

Why and when to perform this task

The following is the programming model for Performance Monitoring Infrastructure (PMI) client:

Steps for this task

  1. Create an instance of PmiClient. This is used for all subsequent method calls.
  2. Optional: You can create your own MBeans. Refer to Extending the WebSphere Application Server administrative system with custom MBeans.
  3. Call the listNodes() and listServers(nodeName) methods to find all the nodes and servers in the WebSphere Application Server domain. The PMI client provides two sets of methods: one set in Version 5.0 and the other set inherited from Version 4.0. You 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. Optional: The client can also call setStatLevel or getStatLevel to set and get the monitoring level. Use the MBeanLevelSpec objects to set monitoring levels.

What to do next

If you prefer to use the Version 4.0 interface, the model is essentially the same, but the object types are different:
  1. Create an instance of PmiClient.
  2. Call the listNodes() and listServers(nodeName) methods to find all the nodes and servers in the WebSphere Application Server domain.
  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.



Sub-topics
Performance Monitoring Infrastructure client (Version 4.0)
Using Version 5.0 PMI API in Version 3.5.5+ and Version 4.0.x
Example: Performance Monitoring Infrastructure client (Version 4.0)
Example: Performance Monitoring Infrastructure client with new data structure

Related reference
Performance Monitoring Infrastructure client package
PMI client interface (deprecated)

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tprf_usepmi2.html

© Copyright IBM Corporation 2002, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)