org.apache.commons.monitoring.repositories
Class DefaultRepository
java.lang.Object
org.apache.commons.monitoring.repositories.DefaultRepository
- All Implemented Interfaces:
- Iterable<Counter>, Repository
public class DefaultRepository
- extends Object
- implements Repository
Fields inherited from interface org.apache.commons.monitoring.repositories.Repository |
INSTANCE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRepository
public DefaultRepository()
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.