public class DataDescriptor
extends java.lang.Object
implements java.io.Serializable, com.ibm.websphere.pmi.PmiConstants
AE_35, AE_40, AES_40, ALL_DATA, APPSERVER_MODULE, BEAN_METHODS_SUBMODULE, BEAN_MODULE, CACHE_MODULE, COLLECTION_DESC, CONNPOOL_MODULE, DEFAULT_MODULE_PREFIX, EJB_ENTITY, EJB_MESSAGEDRIVEN, EJB_SINGLETON, EJB_STATEFUL, EJB_STATELESS, INITIALIZATION_FAILED, INITIALIZING, INTERCEPTOR_SUBMODULE, J2C_CF, J2C_DS, J2C_JMS_CONNECTIONS, J2C_MODULE, JAVA_TIME_CONVERT_RATIO, JVMPI_MODULE, LEVEL_DISABLE, LEVEL_ENABLE, LEVEL_FINEGRAIN, LEVEL_HIGH, LEVEL_HIGH_STRING, LEVEL_LOW, LEVEL_LOW_STRING, LEVEL_MAX, LEVEL_MAX_STRING, LEVEL_MEDIUM, LEVEL_MEDIUM_STRING, LEVEL_NONE, LEVEL_NONE_STRING, LEVEL_UNDEFINED, LOAD_AVG, LOST_CONTACT, METHODS_SUBMODULE_SHORTNAME, MSG_BUNDLE, NOT_IN_SUBMODULE, ORBPERF_MODULE, PLATFORM_ALL, PLATFORM_DISTRIBUTED, PLATFORM_ZOS, PMI_DISABLE_STRING, ROOT_DESC, ROOT_NAME, RUNNING, RUNTIME_MODULE, SERVLET_SUBMODULE, SERVLETS_SUBMODULE_SHORTNAME, SESSIONS_MODULE, STOPPED, SYSTEM_MODULE, TEMPLATE_SUBMODULE, TERMINATING, THREADPOOL_MODULE, TRAN_MODULE, TYPE_AVGSTAT, TYPE_CATEGORY, TYPE_COLLECTION, TYPE_DATA, TYPE_DOUBLE, TYPE_INSTANCE, TYPE_INT, TYPE_INVALID, TYPE_LOAD, TYPE_LONG, TYPE_MODULE, TYPE_MODULEROOT, TYPE_NODE, TYPE_RANGE, TYPE_ROOT, TYPE_SERVER, TYPE_STAT, TYPE_SUBINSTANCE, TYPE_SUBMODULE, TYPE_UNDEFINED, UNINITIALIZED, UNKNOWN_ID, WEBAPP_MODULE, WEBSERVICES_MODULE, WEBSERVICES_SUBMODULE, WLM_CLIENT_MODULE, WLM_MODULE, WLM_SERVER_MODULE, WSGW_MODULE, XML_COLLECTION, XML_COUNT, XML_CREATETIME, XML_DOUBLE, XML_ENDCOLLECTION, XML_ENDLINE, XML_ENDMODULE, XML_ENDNODE, XML_ENDSERVER, XML_ENDTAG, XML_ID, XML_INT, XML_INTEGRAL, XML_LASTVALUE, XML_LOAD, XML_LONG, XML_MODULE, XML_NAME, XML_NODE, XML_QUOTE, XML_SERVER, XML_START, XML_STAT, XML_SUMOFSQUARES, XML_TIME, XML_TOTAL, XML_VALUE, XML_VIEW
Constructor and Description |
---|
DataDescriptor() |
DataDescriptor(DataDescriptor parent,
int dataId)
Constructor
|
DataDescriptor(DataDescriptor parent,
int[] dataIds)
Constructor
|
DataDescriptor(DataDescriptor parent,
java.lang.String name)
Constructor
|
DataDescriptor(java.lang.String[] path)
Constructor
|
DataDescriptor(java.lang.String[] path,
int dataId)
Constructor
|
DataDescriptor(java.lang.String[] path,
int[] dataIds)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getDataId()
Returns the ID of the statistics.
|
int[] |
getDataIds()
Returns the array of statistic IDs
|
java.lang.String |
getModuleName()
Returns the PMI module name of this DataDescriptor.
|
java.lang.String |
getName()
Returns the instance name.
|
java.lang.String[] |
getPath()
Returns Stats path represented by this DataDescriptor
|
int |
getType()
Returns the type of this data i.e. whether module, instance or statistic.
|
int |
getType(int pathLength) |
boolean |
isDescendant(DataDescriptor other)
Returns true if this descriptor is descendant of other descriptor
|
boolean |
isSamePath(DataDescriptor other)
Returns true if this descriptor has same path
same type, same moduleName, instanceName, and dataId as the other DataDescriptor.
|
DataDescriptor |
parentDescriptor()
Returns the parentDescriptor
|
java.lang.String |
toString()
Returns the string representation of this datadescriptor for debug.
|
public DataDescriptor()
public DataDescriptor(java.lang.String[] path)
path
- Path of the Stats in the PMI tree. A null indicates the root of PMI tree (server).public DataDescriptor(java.lang.String[] path, int dataId)
path
- Path of the Stats in the PMI tree. A null indicates the root of PMI tree (server).dataID
- ID of the statistic in the stats module.public DataDescriptor(java.lang.String[] path, int[] dataIds)
path
- Path of the Stats in the PMI tree. A null indicates the root of PMI tree (server).dataID
- Array of statistic IDs.public DataDescriptor(DataDescriptor parent, java.lang.String name)
parent
- DataDescriptorname
- of the PMI modulepublic DataDescriptor(DataDescriptor parent, int dataId)
parent
- DataDescriptorID
- of the statisticpublic DataDescriptor(DataDescriptor parent, int[] dataIds)
parent
- DataDescriptorarray
- of statistic IDspublic java.lang.String[] getPath()
public int getType()
public int getType(int pathLength)
public java.lang.String getModuleName()
public java.lang.String getName()
public int getDataId()
public int[] getDataIds()
public boolean isSamePath(DataDescriptor other)
public boolean isDescendant(DataDescriptor other)
public DataDescriptor parentDescriptor()
public java.lang.String toString()
toString
in class java.lang.Object