org.smallmind.instrument
Class Meter

java.lang.Object
  extended by org.smallmind.instrument.Meter
All Implemented Interfaces:
Clocked, Countable, Metered, Metric, Stoppable

public class Meter
extends Object
implements Metric, Metered, Clocked, Stoppable


Constructor Summary
Meter()
           
Meter(long tickInterval, TimeUnit tickTimeUnit)
           
 
Method Summary
 double getAverageRate()
           
 Clock getClock()
           
 long getCount()
           
 double getFifteenMinuteRate()
           
 double getFiveMinuteRate()
           
 double getOneMinuteRate()
           
 TimeUnit getRateTimeUnit()
           
 void mark()
           
 void mark(long n)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Meter

public Meter()

Meter

public Meter(long tickInterval,
             TimeUnit tickTimeUnit)
Method Detail

mark

public void mark()

mark

public void mark(long n)

getClock

public Clock getClock()
Specified by:
getClock in interface Clocked

getRateTimeUnit

public TimeUnit getRateTimeUnit()
Specified by:
getRateTimeUnit in interface Metered

getCount

public long getCount()
Specified by:
getCount in interface Countable

getOneMinuteRate

public double getOneMinuteRate()
Specified by:
getOneMinuteRate in interface Metered

getFiveMinuteRate

public double getFiveMinuteRate()
Specified by:
getFiveMinuteRate in interface Metered

getFifteenMinuteRate

public double getFifteenMinuteRate()
Specified by:
getFifteenMinuteRate in interface Metered

getAverageRate

public double getAverageRate()
Specified by:
getAverageRate in interface Metered

stop

public void stop()
Specified by:
stop in interface Stoppable


Copyright © 2012. All Rights Reserved.