public class MBeanLevelSpec
extends java.lang.Object
implements java.io.Serializable
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.Modifier and Type | Field and Description |
---|---|
static int |
ALL_STATISTICS
Indicate all statistics that available for the given MBean
|
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).
|
Modifier and Type | Method and Description |
---|---|
int[] |
getEnabled()
Get the list of statistics that are enabled.
|
int |
getLevel()
Deprecated.
No replacement.
|
javax.management.ObjectName |
getObjectName()
Get MBean ObjectName.
|
StatDescriptor |
getStatDescriptor()
Deprecated.
No replacement.
|
void |
setEnabled(int[] enabled)
Set statistics that needs to be enabled.
|
java.lang.String |
toString()
Returns a String representation.
|
public static final int ALL_STATISTICS
public MBeanLevelSpec(javax.management.ObjectName mName, int level)
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}.public MBeanLevelSpec(javax.management.ObjectName mName, StatDescriptor sd, int level)
mName
- should be a valid ObjectName (not null).sd
- an optional StatDescriptor (could be null).level
- the instrumentation level for it.public MBeanLevelSpec(javax.management.ObjectName mName, int[] enable)
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.public void setEnabled(int[] enabled)
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.public javax.management.ObjectName getObjectName()
public StatDescriptor getStatDescriptor()
public int getLevel()
public int[] getEnabled()
public java.lang.String toString()
toString
in class java.lang.Object