com.ibm.websphere.pmi.stat

Class MBeanLevelSpec

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

  1. public class MBeanLevelSpec
  2. extends java.lang.Object
  3. implements java.io.Serializable
This class represents the performance monitoring/instrumentation specification for a JMX Managed Object. The specification allows to enable or disable statistics individually. In 5.0, the MBeanLevelSpec includes an MBean ObjectName, an optional StatDescriptor, and an integer level. In 6.0, the MBeanLevelSpec includes an MBean ObjectName and a list of statistic IDs that needs to be enabled.
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 MBean

Constructor Summary

Constructor and Description
MBeanLevelSpec(javax.management.ObjectName mName,int level)
Deprecated. As of 6.0, replaced by MBeanLevelSpec(ObjectName mName, int[] enable).
MBeanLevelSpec(javax.management.ObjectName mName,int[] enable)
Constructs a monitoring specification to selectively enable statistics.
MBeanLevelSpec(javax.management.ObjectName mName,StatDescriptor sd,int level)
Deprecated. As of 6.0, replaced by MBeanLevelSpec(ObjectName mName, int[] enable).

Method Summary

Modifier and Type Method and Description
  1. int[]
getEnabled()
Get the list of statistics that are enabled.
  1. int
getLevel()
Deprecated. No replacement.
  1. javax.management.ObjectName
getObjectName()
Get MBean ObjectName.
  1. StatDescriptor
getStatDescriptor()
Deprecated. No replacement.
  1. void
setEnabled(int[] enabled)
Set statistics that needs to be enabled.
  1. java.lang.String
toString()
Returns a String representation.
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 MBean
See Also:

Constructor Detail

MBeanLevelSpec

  1. public MBeanLevelSpec(javax.management.ObjectName mName,
  2. int level)
Deprecated. As of 6.0, replaced by MBeanLevelSpec(ObjectName mName, int[] enable).
Parameters:
mName - should be a valid ObjectName (not null).
level - the instrumentation level. Level are defined in com.ibm.websphere.pmi.PmiConstants {LEVEL_NONE, LEVEL_LOW, LEVEL_MEDIUM, LEVEL_HIGH, LEVEL_MAX}.

MBeanLevelSpec

  1. public MBeanLevelSpec(javax.management.ObjectName mName,
  2. StatDescriptor sd,
  3. int level)
Deprecated. As of 6.0, replaced by MBeanLevelSpec(ObjectName mName, int[] enable).
Parameters:
mName - should be a valid ObjectName (not null).
sd - an optional StatDescriptor (could be null).
level - the instrumentation level for it.

MBeanLevelSpec

  1. public MBeanLevelSpec(javax.management.ObjectName mName,
  2. int[] enable)
Constructs a monitoring specification to selectively enable statistics.
Parameters:
mName - A valid MBean ObjectName (not null) for which statistics needs to be enabled.
enable - 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 that are available for this MBean and new int[0] to disable all statistics.

Method Detail

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 and new int[0] to disable all statistics.

getObjectName

  1. public javax.management.ObjectName getObjectName( )
Get MBean ObjectName.
Returns:
MBean ObjectName

getStatDescriptor

  1. public StatDescriptor getStatDescriptor( )
Deprecated. No replacement.
Get StatDescriptor.

getLevel

  1. public int getLevel()
Deprecated. No replacement.
Get PMI monitoring level.

getEnabled

  1. public int[] getEnabled()
Get the list of statistics that are enabled. MBeanLevelSpec.ALL_STATISTICS indicate all statistics are enabled and new int[0] to disable all statistics.

toString

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