Package org.jmxtrans.agent
Class TimeTrackingCollector
java.lang.Object
org.jmxtrans.agent.TimeTrackingCollector
public class TimeTrackingCollector
extends java.lang.Object
Collector that keeps track of when it was last run and which interval it needs to be run at.
- Author:
- Kristoffer Erlandsson
-
Constructor Summary
Constructors Constructor Description TimeTrackingCollector(Collector collector, long collectIntervalMillis) -
Method Summary
Modifier and Type Method Description voidcollectIfEnoughTimeHasPassed(javax.management.MBeanServer mbeanServer, OutputWriter outputWriter)longgetCollectIntervalMillis()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TimeTrackingCollector
-
-
Method Details
-
collectIfEnoughTimeHasPassed
public void collectIfEnoughTimeHasPassed(javax.management.MBeanServer mbeanServer, OutputWriter outputWriter) -
getCollectIntervalMillis
public long getCollectIntervalMillis()
-