org.apache.commons.monitoring.counters
Interface Counter

All Known Implementing Classes:
DefaultCounter

public interface Counter

A Metric is a numerical indicator of some monitored application state with support for simple statistics.

Author:
Nicolas De Loof

Nested Class Summary
static class Counter.Key
           
 
Method Summary
 void add(double delta)
           
 void add(double delta, Unit unit)
           
 AtomicInteger currentConcurrency()
           
 double getGeometricMean()
           
 long getHits()
           
 Counter.Key getKey()
           
 double getMax()
           
 int getMaxConcurrency()
           
 double getMean()
           
 double getMin()
           
 double getStandardDeviation()
           
 double getSum()
           
 double getSumOfLogs()
           
 double getSumOfSquares()
           
 double getVariance()
           
 void reset()
           
 void updateConcurrency(int concurrency)
           
 

Method Detail

getKey

Counter.Key getKey()

reset

void reset()

add

void add(double delta)

add

void add(double delta,
         Unit unit)

currentConcurrency

AtomicInteger currentConcurrency()

updateConcurrency

void updateConcurrency(int concurrency)

getMaxConcurrency

int getMaxConcurrency()

getMax

double getMax()

getMin

double getMin()

getHits

long getHits()

getSum

double getSum()

getStandardDeviation

double getStandardDeviation()

getVariance

double getVariance()

getMean

double getMean()

getGeometricMean

double getGeometricMean()

getSumOfLogs

double getSumOfLogs()

getSumOfSquares

double getSumOfSquares()


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