Package com.ibm.websphere.monitor.jmx
Class Counter
java.lang.Object
com.ibm.websphere.monitor.jmx.Meter
com.ibm.websphere.monitor.jmx.Counter
A counter is used to track and record metrics related to counted items
 such as processed requests, bytes read, or bytes written. Counted data
 must be monotonically increasing. Counters cannot appear to
 move backwards except on reset or wrap.
- 
Constructor SummaryConstructorsConstructorDescriptionCounter()Default constructor.Counter(CounterReading reading, long currentValue, String description, String unit) Constructor used during construction of proxy objects for MXBeans.
- 
Method SummaryMethods inherited from class com.ibm.websphere.monitor.jmx.MetersetDescription, setUnit
- 
Constructor Details- 
Counterpublic Counter()Default constructor.
- 
Counter@ConstructorProperties({"reading","currentValue","description","unit"}) public Counter(CounterReading reading, long currentValue, String description, String unit) Constructor used during construction of proxy objects for MXBeans.
 
- 
- 
Method Details- 
getCurrentValuepublic long getCurrentValue()- Returns:
- current counter value
 
- 
getReading- Returns:
- a snapshot of the counter value
 
- 
getDescription- Overrides:
- getDescriptionin class- Meter
- Returns:
- description of the counter
 
- 
getUnit
 
-