com.ibm.websphere.pmi.stat

Class StatDescriptor

  • java.lang.Object
    • com.ibm.websphere.pmi.stat.StatDescriptor
  • All Implemented Interfaces:
    java.io.Serializable


    public class StatDescriptor
    extends java.lang.Object
    implements java.io.Serializable
    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:

    server1
        |__ 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

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

      Methods 
      Modifier and Type Method and Description
      int getDataId()
      Deprecated. 
      No replacement
      java.lang.String getName()
      Deprecated. 
      No replacement
      java.lang.String[] getPath()
      Returns Stats path represented by this StatDescriptor
      int getType()
      Deprecated. 
      No replacement
      boolean isSame(StatDescriptor sd)
      Deprecated. 
      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)
        Constructor
        Parameters:
        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
        Overrides:
        toString in class java.lang.Object
IBM WebSphere Application ServerTM
Release 9.0