com.netflix.servo.publish
Class JvmMetricPoller

java.lang.Object
  extended by com.netflix.servo.publish.JvmMetricPoller
All Implemented Interfaces:
MetricPoller

public class JvmMetricPoller
extends java.lang.Object
implements MetricPoller

Poller for standard JVM metrics.


Constructor Summary
JvmMetricPoller()
          Create a new instance.
 
Method Summary
 java.util.List<Metric> poll(MetricFilter filter)
          Fetch the current values for a set of metrics that match the provided filter.
 java.util.List<Metric> poll(MetricFilter filter, boolean reset)
          Fetch the current values for a set of metrics that match the provided filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JvmMetricPoller

public JvmMetricPoller()
Create a new instance.

Method Detail

poll

public final java.util.List<Metric> poll(MetricFilter filter)
Fetch the current values for a set of metrics that match the provided filter. This method should be cheap, thread-safe, and interruptible so that it can be called frequently to collect metrics at a regular interval.

Specified by:
poll in interface MetricPoller
Parameters:
filter - retricts the set of metrics
Returns:
list of current metric values

poll

public final java.util.List<Metric> poll(MetricFilter filter,
                                         boolean reset)
Fetch the current values for a set of metrics that match the provided filter. This method should be cheap, thread-safe, and interruptible so that it can be called frequently to collect metrics at a regular interval.

Specified by:
poll in interface MetricPoller
Parameters:
filter - retricts the set of metrics
reset - should this poller trigger a reset for ResettableMonitor
Returns:
list of current metric values