com.netflix.servo.monitor
Class Pollers

java.lang.Object
  extended by com.netflix.servo.monitor.Pollers

public final class Pollers
extends java.lang.Object

Poller configuration. Our resettable monitors need to be aware of all pollers so they can deal with calls that reset their values. This class provides the mechanism they use to know how many pollers will be used, and at their estimated polling intervals.


Field Summary
static int NUM_POLLERS
          Number of pollers that will run.
static java.lang.String POLLERS
          A comma separated list of longs indicating the frequency of the pollers.
 
Method Summary
static java.util.List<java.lang.Long> getPollingIntervals()
          Get list of polling intervals in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POLLERS

public static final java.lang.String POLLERS
A comma separated list of longs indicating the frequency of the pollers. For example:
60000, 10000
indicates that the main poller runs every 60s and a secondary poller will run every 10 seconds. This is used to deal with monitors that need to get reset after they're polled. For example a MinGauge or a ResettableCounter.


NUM_POLLERS

public static final int NUM_POLLERS
Number of pollers that will run.

Method Detail

getPollingIntervals

public static java.util.List<java.lang.Long> getPollingIntervals()
Get list of polling intervals in milliseconds.