org.apache.commons.monitoring.repositories
Class DefaultRepository

java.lang.Object
  extended by org.apache.commons.monitoring.repositories.DefaultRepository
All Implemented Interfaces:
Iterable<Counter>, Repository

public class DefaultRepository
extends Object
implements Repository


Field Summary
 
Fields inherited from interface org.apache.commons.monitoring.repositories.Repository
INSTANCE
 
Constructor Summary
DefaultRepository()
           
 
Method Summary
 void addGauge(Gauge gauge)
           
 void clear()
           
 Counter getCounter(Counter.Key key)
           
 Map<Long,Double> getGaugeValues(long start, long end, Role role)
           
 Iterator<Counter> iterator()
           
 StopWatch start(Counter monitor)
           
 void stopGauge(Role role)
           
 void stopGaugeTimers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRepository

public DefaultRepository()
Method Detail

stopGaugeTimers

public void stopGaugeTimers()

getCounter

public Counter getCounter(Counter.Key key)
Specified by:
getCounter in interface Repository

clear

public void clear()
Specified by:
clear in interface Repository

start

public StopWatch start(Counter monitor)
Specified by:
start in interface Repository

iterator

public Iterator<Counter> iterator()
Specified by:
iterator in interface Iterable<Counter>

getGaugeValues

public Map<Long,Double> getGaugeValues(long start,
                                       long end,
                                       Role role)
Specified by:
getGaugeValues in interface Repository

addGauge

public void addGauge(Gauge gauge)
Specified by:
addGauge in interface Repository

stopGauge

public void stopGauge(Role role)
Specified by:
stopGauge in interface Repository


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