com.ibm.websphere.monitor.jmx
Class Counter
- java.lang.Object
com.ibm.websphere.monitor.meters.Meter
com.ibm.websphere.monitor.jmx.Counter
- public class Counter
- extends com.ibm.websphere.monitor.meters.Meter
Constructor Summary
Constructor and Description |
---|
Counter()
Default constructor.
|
Counter(CounterReading reading,long currentValue,java.lang.String description,java.lang.String unit)
Constructor used during construction of proxy objects for MXBeans.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getCurrentValue()
|
|
getDescription()
|
getReading()
|
|
|
getUnit()
|
Methods inherited from class com.ibm.websphere.monitor.meters.Meter |
---|
setDescription, setUnit |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
Counter
- public Counter()
Default constructor.
Counter
- @ConstructorProperties(value={"reading","currentValue","description","unit"}) public Counter( CounterReading reading,
- long currentValue,
- java.lang.String description,
- java.lang.String unit)
Constructor used during construction of proxy objects for MXBeans.
Method Detail
getCurrentValue
- public long getCurrentValue()
Returns:
current counter value
getReading
- public CounterReading getReading( )
Returns:
a snapshot of the counter value
getDescription
- public java.lang.String getDescription( )
Overrides:
getDescription
in class com.ibm.websphere.monitor.meters.Meter
Returns:
description of the counter
getUnit
- public java.lang.String getUnit( )
Overrides:
getUnit
in class com.ibm.websphere.monitor.meters.Meter
Returns:
unit of measurement for the counter