org.apache.commons.monitoring.jta
Class JTAGauges.JTAGauge

java.lang.Object
  extended by org.apache.commons.monitoring.jta.JTAGauges.JTAGauge
All Implemented Interfaces:
Gauge
Direct Known Subclasses:
JTAGauges.JTAActiveGauge
Enclosing class:
JTAGauges

protected static class JTAGauges.JTAGauge
extends Object
implements Gauge


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.commons.monitoring.gauges.Gauge
Gauge.LoaderHelper
 
Field Summary
protected  AtomicLong counter
           
 
Constructor Summary
protected JTAGauges.JTAGauge(Role role, AtomicLong counter, long period)
           
 
Method Summary
 long period()
           
 Role role()
           
 double value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counter

protected final AtomicLong counter
Constructor Detail

JTAGauges.JTAGauge

protected JTAGauges.JTAGauge(Role role,
                             AtomicLong counter,
                             long period)
Method Detail

role

public Role role()
Specified by:
role in interface Gauge

value

public double value()
Specified by:
value in interface Gauge

period

public long period()
Specified by:
period in interface Gauge


Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.