org.apache.commons.monitoring.counters
Class DefaultCounter
java.lang.Object
org.apache.commons.monitoring.counters.DefaultCounter
- All Implemented Interfaces:
- Counter
public class DefaultCounter
- extends Object
- implements Counter
Nested classes/interfaces inherited from interface org.apache.commons.monitoring.counters.Counter |
Counter.Key |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCounter
public DefaultCounter(Counter.Key key,
DataStore store)
addInternal
public void addInternal(double delta)
updateConcurrency
public void updateConcurrency(int concurrency)
- Specified by:
updateConcurrency
in interface Counter
getMaxConcurrency
public int getMaxConcurrency()
- Specified by:
getMaxConcurrency
in interface Counter
currentConcurrency
public AtomicInteger currentConcurrency()
- Specified by:
currentConcurrency
in interface Counter
getKey
public Counter.Key getKey()
- Specified by:
getKey
in interface Counter
reset
public void reset()
- Specified by:
reset
in interface Counter
add
public void add(double delta)
- Specified by:
add
in interface Counter
add
public void add(double delta,
Unit deltaUnit)
- Specified by:
add
in interface Counter
getMax
public double getMax()
- Specified by:
getMax
in interface Counter
getMin
public double getMin()
- Specified by:
getMin
in interface Counter
getSum
public double getSum()
- Specified by:
getSum
in interface Counter
getStandardDeviation
public double getStandardDeviation()
- Specified by:
getStandardDeviation
in interface Counter
getVariance
public double getVariance()
- Specified by:
getVariance
in interface Counter
getMean
public double getMean()
- Specified by:
getMean
in interface Counter
getGeometricMean
public double getGeometricMean()
- Specified by:
getGeometricMean
in interface Counter
getSumOfLogs
public double getSumOfLogs()
- Specified by:
getSumOfLogs
in interface Counter
getSumOfSquares
public double getSumOfSquares()
- Specified by:
getSumOfSquares
in interface Counter
getHits
public long getHits()
- Specified by:
getHits
in interface Counter
getLock
public Lock getLock()
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.