Package com.ibm.websphere.monitor.jmx
Class Counter
- java.lang.Object
- 
- com.ibm.websphere.monitor.jmx.Meter
- 
- com.ibm.websphere.monitor.jmx.Counter
 
 
- 
 public class Counter extends Meter 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 SummaryConstructors Constructor 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCurrentValue()java.lang.StringgetDescription()CounterReadinggetReading()java.lang.StringgetUnit()- 
Methods inherited from class com.ibm.websphere.monitor.jmx.MetersetDescription, setUnit
 
- 
 
- 
- 
- 
Constructor Detail- 
Counterpublic Counter() Default constructor.
 - 
Counter@ConstructorProperties({"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- 
getCurrentValuepublic long getCurrentValue() - Returns:
- current counter value
 
 - 
getReadingpublic CounterReading getReading() - Returns:
- a snapshot of the counter value
 
 - 
getDescriptionpublic java.lang.String getDescription() - Overrides:
- getDescriptionin class- Meter
- Returns:
- description of the counter
 
 
- 
 
-