com.ibm.websphere.monitor.jmx

Class CounterReading

  1. java.lang.Object
  2. extended bycom.ibm.websphere.monitor.jmx.CounterReading

  1. public class CounterReading
  2. 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

Constructor and Description
CounterReading(long timestamp,long count,java.lang.String unit)
Constructor used during construction of proxy objects for MXBeans.

Method Summary

Modifier and Type Method and Description
  1. long
getCount()
  1. long
getTimestamp()
  1. java.lang.String
getUnit()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CounterReading

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

Method Detail

getTimestamp

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

getCount

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

getUnit

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