com.ibm.websphere.pmi
Class PmiDataInfo
- java.lang.Object
-
- com.ibm.websphere.pmi.PmiDataInfo
-
- All Implemented Interfaces:
- PmiConstants, java.io.Serializable
public class PmiDataInfo extends java.lang.Object implements java.io.Serializable, PmiConstants
This class represents the specification of an individual Statistic in a Stats object (PMI module).- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface 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_METHODS_METHOD_CALLS, EJB_METHODS_METHOD_LOAD, EJB_METHODS_METHOD_RESPONSE_TIME, 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, URL_ASYNC_CONTEXT_RESPONSE_TIME, URL_CONCURRENT_REQUESTS, URL_RESPONSE_TIME, URL_TOTAL_REQUESTS, 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 Summary
Constructors Constructor and Description PmiDataInfo(int id)ConstructorPmiDataInfo(int id, java.lang.String name, int type, int level, java.lang.String description)ConstructorPmiDataInfo(int id, java.lang.String name, java.lang.String unit, java.lang.String description, int type, int level, boolean resettable)Constructor
-
Method Summary
Methods Modifier and Type Method and Description voidaddDependency(int id)(WebSphere internal use only)PmiDataInfocopy()Creates a copy of this objectjava.lang.StringgetCategory()Return the applicable category of this statistic.java.lang.StringgetComment()Returns the comment string for this statisticjava.util.ArrayListgetDependency()Returns the list of statistics that this statistic depends onjava.lang.StringgetDescription()Returns the descriptionintgetId()Returns the statistic IDintgetLevel()Returns the statistic instrumentaion level (List of levels defined in PmiConstants)java.lang.StringgetName()Returns the name of the statsiticjava.lang.StringgetParticipation()Deprecated.No replacementjava.lang.StringgetPlatform()Returns the platform in which this statistic is supported (List of platforms defined in PmiConstants)java.lang.StringgetStatisticSet()Returns the statistic set that this statistic belongs to (Statistic sets defined in com.ibm.websphere.pmi.stat.StatConstants)java.lang.StringgetSubmoduleName()Returns the PMI sub-module name to which this statistic belongs to.intgetType()Returns the statistic type (defined in PmiConstants)java.lang.StringgetUnit()Return the statistic unitbooleanisAggregatable()Return true if this statistic can be aggregated by the parentbooleanisAvailableInPlatform(java.lang.String p)Return true if this statistic is available in the given platformbooleanisResettable()Return true if it can be reset to zero in client side.booleanisUpdateOnRequest()Return true if this statistic is updated only on requestbooleanisZosAggregatable()Return true if the value of statistic from zos servant regions is aggregatablevoidsetAggregatable(boolean aggregatable)(WebSphere internal use only)voidsetCategory(java.lang.String category)(WebSphere internal use only)voidsetComment(java.lang.String comment)(WebSphere internal use only)voidsetDescription(java.lang.String description)(WebSphere internal use only)voidsetLevel(int level)(WebSphere internal use only)voidsetName(java.lang.String name)(WebSphere internal use only)voidsetOnRequest(boolean onRequest)(WebSphere internal use only)voidsetParticipation(java.lang.String participation)(WebSphere internal use only)voidsetPlatform(java.lang.String platform)(WebSphere internal use only)voidsetResettable(boolean resettable)(WebSphere internal use only)voidsetStatisticSet(java.lang.String statSet)(WebSphere internal use only)voidsetSubmoduleName(java.lang.String submoduleName)(WebSphere internal use only)voidsetType(int type)(WebSphere internal use only)voidsetUnit(java.lang.String unit)(WebSphere internal use only)voidsetZosAggregatable(boolean zosAggregatable)(WebSphere internal use only)java.lang.StringtoString()Returns String representation of this object
-
-
-
Constructor Detail
-
PmiDataInfo
public PmiDataInfo(int id)
Constructor- Parameters:
id- Uniquely identifies a statistic in a Stats object
-
PmiDataInfo
public PmiDataInfo(int id, java.lang.String name, int type, int level, java.lang.String description)Constructor- Parameters:
id- Uniquely identifies a statistic in a Stats objecyname- Name of the statistictype- Type of the statistic (defined in PmiConstants)level- Instrumentation level (defined in PmiConstants)description- Desription of the statistic
-
PmiDataInfo
public PmiDataInfo(int id, java.lang.String name, java.lang.String unit, java.lang.String description, int type, int level, boolean resettable)Constructor- Parameters:
id- Uniquely identifies a statistic in a Stats objecyname- Name of the statisticunit- Unit of the statistictype- Type of the statistic (defined in PmiConstants)level- Instrumentation level (defined in PmiConstants)description- Desription of the statisticresettable- Indicates if this statistic can be reset to zero in client side
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
(WebSphere internal use only)
-
setType
public void setType(int type)
(WebSphere internal use only)
-
setParticipation
public void setParticipation(java.lang.String participation)
(WebSphere internal use only)
-
setDescription
public void setDescription(java.lang.String description)
(WebSphere internal use only)
-
setUnit
public void setUnit(java.lang.String unit)
(WebSphere internal use only)
-
setCategory
public void setCategory(java.lang.String category)
(WebSphere internal use only)
-
setLevel
public void setLevel(int level)
(WebSphere internal use only)
-
setStatisticSet
public void setStatisticSet(java.lang.String statSet)
(WebSphere internal use only)
-
setPlatform
public void setPlatform(java.lang.String platform)
(WebSphere internal use only)
-
setComment
public void setComment(java.lang.String comment)
(WebSphere internal use only)
-
setResettable
public void setResettable(boolean resettable)
(WebSphere internal use only)
-
setAggregatable
public void setAggregatable(boolean aggregatable)
(WebSphere internal use only)
-
setZosAggregatable
public void setZosAggregatable(boolean zosAggregatable)
(WebSphere internal use only)
-
setOnRequest
public void setOnRequest(boolean onRequest)
(WebSphere internal use only)
-
setSubmoduleName
public void setSubmoduleName(java.lang.String submoduleName)
(WebSphere internal use only)
-
addDependency
public void addDependency(int id)
(WebSphere internal use only)
-
getDependency
public java.util.ArrayList getDependency()
Returns the list of statistics that this statistic depends on
-
getName
public java.lang.String getName()
Returns the name of the statsitic
-
getId
public int getId()
Returns the statistic ID
-
getType
public int getType()
Returns the statistic type (defined in PmiConstants)
-
getDescription
public java.lang.String getDescription()
Returns the description
-
getUnit
public java.lang.String getUnit()
Return the statistic unit
-
getCategory
public java.lang.String getCategory()
Return the applicable category of this statistic. For example, an EJB counter could be only applicable to entity bean.
-
getParticipation
public java.lang.String getParticipation()
Deprecated. No replacement
-
getLevel
public int getLevel()
Returns the statistic instrumentaion level (List of levels defined in PmiConstants)
-
getStatisticSet
public java.lang.String getStatisticSet()
Returns the statistic set that this statistic belongs to (Statistic sets defined in com.ibm.websphere.pmi.stat.StatConstants)
-
getPlatform
public java.lang.String getPlatform()
Returns the platform in which this statistic is supported (List of platforms defined in PmiConstants)
-
getComment
public java.lang.String getComment()
Returns the comment string for this statistic
-
isResettable
public boolean isResettable()
Return true if it can be reset to zero in client side.
-
isAggregatable
public boolean isAggregatable()
Return true if this statistic can be aggregated by the parent
-
isZosAggregatable
public boolean isZosAggregatable()
Return true if the value of statistic from zos servant regions is aggregatable
-
isAvailableInPlatform
public boolean isAvailableInPlatform(java.lang.String p)
Return true if this statistic is available in the given platform- Parameters:
p- - platform string defined in PmiConstants
-
isUpdateOnRequest
public boolean isUpdateOnRequest()
Return true if this statistic is updated only on request
-
getSubmoduleName
public java.lang.String getSubmoduleName()
Returns the PMI sub-module name to which this statistic belongs to.
-
toString
public java.lang.String toString()
Returns String representation of this object- Overrides:
toStringin classjava.lang.Object
-
copy
public PmiDataInfo copy()
Creates a copy of this object- Returns:
- a copy of this object
-
-