|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.pmi.stat.MBeanLevelSpec
public class MBeanLevelSpec
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.
Field Summary | |
---|---|
static int |
ALL_STATISTICS
Indicate all statistics that available for the given MBean |
Constructor Summary | |
---|---|
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 | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ALL_STATISTICS
Constructor Detail |
---|
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.Method Detail |
---|
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
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |