Class StatDescriptor

  • java.lang.Object
  • All Implemented Interfaces:

    public class StatDescriptor
    extends java.lang.Object
    This class is used to identify a Stats object in the WebSphere PMI.
    Typically, the JMX ObjectName is used to locate a managed object in the J2EE domain. The ObjectName can be used get statistics about the managed object. When a JMX ObjectName is not available StatDescriptor can be used to locate the Stats.
    WebSphere Performance Monitoring Infrastructure (PMI) maintains the Stats from various components in a tree structure. Following is a sample Stats tree:

        |__ WSJVMStats
        |__ WSThreadPoolStats
        |__ WSEJBStats
        |__ WSWebAppStats
               |__ <MyApplication.war>
                   |__ WSServletStats
                       |__ <Servlet_1>

    StatDescriptor is used to locate and access particular Stats in the PMI tree. For instance, StatDescriptor that represents Servlet_1 Stats can be constructed as follows:
    new StatDescriptor (new String[] {WSWebAppStats.NAME, "MyApplication.war", WSServletStats.NAME, "Servlet_1"});
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor and Description
      StatDescriptor(java.lang.String[] path)
      StatDescriptor(java.lang.String[] path, int dataId)
      No replacement
    • Method Summary

      Modifier and Type Method and Description
      int getDataId()
      No replacement
      java.lang.String getName()
      No replacement
      java.lang.String[] getPath()
      Returns Stats path represented by this StatDescriptor
      int getType()
      No replacement
      boolean isSame(StatDescriptor sd)
      No replacement
      java.lang.String toString()
      Returns String representation of StatDescriptor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StatDescriptor

        public StatDescriptor(java.lang.String[] path)
        path - Path of the Stats in the PMI tree. A null indicates the root of PMI tree (server).
      • StatDescriptor

        public StatDescriptor(java.lang.String[] path,
                      int dataId)
        Deprecated. No replacement
    • Method Detail

      • getPath

        public java.lang.String[] getPath()
        Returns Stats path represented by this StatDescriptor
      • getName

        public java.lang.String getName()
        Deprecated. No replacement
      • getDataId

        public int getDataId()
        Deprecated. No replacement
      • getType

        public int getType()
        Deprecated. No replacement
      • isSame

        public boolean isSame(StatDescriptor sd)
        Deprecated. No replacement
      • toString

        public java.lang.String toString()
        Returns String representation of StatDescriptor
        toString in class java.lang.Object
IBM WebSphere Application ServerTM
Release 9.0