com.ibm.websphere.pmi.stat

Class StatDescriptor

  1. java.lang.Object
  2. extended bycom.ibm.websphere.pmi.stat.StatDescriptor
All implemented interfaces:
java.io.Serializable

  1. public class StatDescriptor
  2. extends java.lang.Object
  3. 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

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

Method Summary

Modifier and Type Method and Description
  1. int
getDataId()
Deprecated. No replacement
  1. java.lang.String
getName()
Deprecated. No replacement
  1. java.lang.String[]
getPath()
Returns Stats path represented by this StatDescriptor
  1. int
getType()
Deprecated. No replacement
  1. boolean
isSame(StatDescriptor sd)
Deprecated. No replacement
  1. 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

  1. 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

  1. public StatDescriptor(java.lang.String[] path,
  2. int dataId)
Deprecated. No replacement

Method Detail

getPath

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

getName

  1. public java.lang.String getName( )
Deprecated. No replacement

getDataId

  1. public int getDataId()
Deprecated. No replacement

getType

  1. public int getType()
Deprecated. No replacement

isSame

  1. public boolean isSame(StatDescriptor sd)
Deprecated. No replacement

toString

  1. public java.lang.String toString( )
Returns String representation of StatDescriptor
Overrides:
toString in class java.lang.Object