org.apache.activemq.apollo.util.metric
Class MetricCounter

java.lang.Object
  extended by org.apache.activemq.apollo.util.metric.Metric
      extended by org.apache.activemq.apollo.util.metric.MetricCounter

public class MetricCounter
extends Metric


Constructor Summary
MetricCounter()
           
 
Method Summary
 long counter()
           
 long increment()
           
 long increment(long delta)
           
 MetricCounter name(java.lang.String name)
           
 long reset()
           
 
Methods inherited from class org.apache.activemq.apollo.util.metric.Metric
getName, getRateSummary, getUnit, setName, setUnit, unit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricCounter

public MetricCounter()
Method Detail

name

public MetricCounter name(java.lang.String name)
Overrides:
name in class Metric

increment

public final long increment(long delta)

increment

public final long increment()

counter

public final long counter()
Specified by:
counter in class Metric

reset

public long reset()
Specified by:
reset in class Metric


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.