|
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.StatLevelSpec
public class StatLevelSpec
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
.
Field Summary | |
---|---|
static int |
ALL_STATISTICS
Indicate all statistics that available for the given StatDescriptor |
Constructor Summary | |
---|---|
StatLevelSpec(java.lang.String[] path,
int[] enable)
Constructs a monitoring specification to selectively enable statistics. |
Method Summary | |
---|---|
int[] |
getEnabled()
Get the list of statistics that are enabled. |
java.lang.String[] |
getPath()
Get StatDescriptor |
void |
setEnabled(int[] enabled)
Set statistics that needs to be enabled. |
void |
setPath(java.lang.String[] path)
Set StatDescriptor |
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 |
---|
public static final int ALL_STATISTICS
Constructor Detail |
---|
public StatLevelSpec(java.lang.String[] path, int[] enable)
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.Method Detail |
---|
public java.lang.String[] getPath()
public int[] getEnabled()
public void setPath(java.lang.String[] path)
path
- Path of the stats in the PMI tree. A null indicates the root of PMI tree (server).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 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 |