You can use the Performance Monitoring Infrastructure (PMI)
interfaces to develop your own applications to collect and display
performance information.
About this task
The following is the programming model for Performance Monitoring
Infrastructure (PMI) client:
Procedure
- Create an instance of PmiClient. This is used for all subsequent method calls.
- Optional: You can create your own MBeans. See the extending the WebSphere® Application Server administrative
system with custom MBeans for more information.
- Call the listNodes() and listServers(nodeName) methods
to find all the nodes and servers in the WebSphere Application Server domain.
- Call listMBeans and listStatMembers to get all the available
MBeans and MBeanStatDescriptors.
- Call the getStats method to get the Stats object for the
PMI data.
- Optional: The client can also call setStatLevel
or getStatLevel to set and get the monitoring level. Use the MBeanLevelSpec
objects to set monitoring levels.