com.ibm.websphere.monitor.jmx
Class CounterReading

java.lang.Object
  extended by com.ibm.websphere.monitor.jmx.CounterReading

public class CounterReading
extends java.lang.Object

Represents a snapshot of a Counter. A CounterReading holds the current value of the Counter at the time it was obtained and will not change.


Constructor Summary
CounterReading(long timestamp, long count, java.lang.String unit)
          Constructor used during construction of proxy objects for MXBeans.
 
Method Summary
 long getCount()
           
 long getTimestamp()
           
 java.lang.String getUnit()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterReading

@ConstructorProperties(value={"timestamp","count","unit"})
public CounterReading(long timestamp,
                                            long count,
                                            java.lang.String unit)
Constructor used during construction of proxy objects for MXBeans.

Method Detail

getTimestamp

public long getTimestamp()
Returns:
timestamp of the counter reading

getCount

public long getCount()
Returns:
counter value at time of snapshot

getUnit

public java.lang.String getUnit()
Returns:
unit of measurement of the counter