org.apache.commons.monitoring.store
Class DefaultDataStore

java.lang.Object
  extended by org.apache.commons.monitoring.store.DefaultDataStore
All Implemented Interfaces:
DataStore

public class DefaultDataStore
extends Object
implements DataStore


Nested Class Summary
protected static class DefaultDataStore.FixedSizedMap
           
 
Constructor Summary
DefaultDataStore()
           
 
Method Summary
 void addToCounter(Counter counter, double delta)
           
 void addToGauge(Gauge gauge, long time, double value)
           
 void clearCounters()
           
 void createOrNoopGauge(Role role)
           
 Collection<Counter> getCounters()
           
 Map<Long,Double> getGaugeValues(GaugeValuesRequest gaugeValuesRequest)
           
 Counter getOrCreateCounter(Counter.Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataStore

public DefaultDataStore()
Method Detail

getOrCreateCounter

public Counter getOrCreateCounter(Counter.Key key)
Specified by:
getOrCreateCounter in interface DataStore

clearCounters

public void clearCounters()
Specified by:
clearCounters in interface DataStore

getCounters

public Collection<Counter> getCounters()
Specified by:
getCounters in interface DataStore

addToCounter

public void addToCounter(Counter counter,
                         double delta)
Specified by:
addToCounter in interface DataStore

getGaugeValues

public Map<Long,Double> getGaugeValues(GaugeValuesRequest gaugeValuesRequest)
Specified by:
getGaugeValues in interface DataStore

createOrNoopGauge

public void createOrNoopGauge(Role role)
Specified by:
createOrNoopGauge in interface DataStore

addToGauge

public void addToGauge(Gauge gauge,
                       long time,
                       double value)
Specified by:
addToGauge in interface DataStore


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