com.ibm.websphere.pmi.stat

Class StatLevelSpec

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

  1. public class StatLevelSpec
  2. extends java.lang.Object
  3. implements java.io.Serializable
This class represents the performance monitoring/instrumentation specification for a StatDescriptor. The specification allows to enable or disable statistics individually. The statistic IDs are defined in WS*Stats interface in com.ibm.websphere.pmi.stat package. For example, JVM statistics are defined in WSJVMStats.
See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
ALL_STATISTICS
Indicate all statistics that available for the given StatDescriptor

Constructor Summary

Constructor and Description
StatLevelSpec(java.lang.String[] path,int[] enable)
Constructs a monitoring specification to selectively enable statistics.

Method Summary

Modifier and Type Method and Description
  1. int[]
getEnabled()
Get the list of statistics that are enabled.
  1. java.lang.String[]
getPath()
Get StatDescriptor
  1. void
setEnabled(int[] enabled)
Set statistics that needs to be enabled.
  1. void
setPath(java.lang.String[] path)
Set StatDescriptor
  1. java.lang.String
toString()
Returns String representation of StatLevelSpec
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

ALL_STATISTICS

  1. public static final int ALL_STATISTICS
Indicate all statistics that available for the given StatDescriptor
See Also:

Constructor Detail

StatLevelSpec

  1. public StatLevelSpec(java.lang.String[] path,
  2. int[] enable)
Constructs a monitoring specification to selectively enable statistics.
Parameters:
path - Stats for which statistics needs to be enabled. A null indicates the root of PMI tree (server).
enable - List of statistic ID that needs be enabled. If path is null then new int[StatLevelSpec.ALL_STATISTICS] is the only valid value for this parameter. Only the statistics specified in this list will be enabled and the statistics that are not specified in this list will be disabled.
Use new int[StatLevelSpec.ALL_STATISTICS] to enable all the statistics that are available for this StatDescriptor.

Method Detail

getPath

  1. public java.lang.String[] getPath( )
Get StatDescriptor

getEnabled

  1. public int[] getEnabled()
Get the list of statistics that are enabled. StatLevelSpec.ALL_STATISTICS indicate all statistics are enabled.

setPath

  1. public void setPath(java.lang.String[] path)
Set StatDescriptor
Parameters:
path - Path of the stats in the PMI tree. A null indicates the root of PMI tree (server).

setEnabled

  1. public void setEnabled(int[] enabled)
Set statistics that needs to be enabled.
Parameters:
enabled - List of statistic ID that needs be enabled. Only the statistics specified in this list will be enabled and the statistics that are not specified in this list will be disabled.
Use new int[MBeanLevelSpec.ALL_STATISTICS] to enable all the statistics.

toString

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