public abstract class BaseMetricPoller extends java.lang.Object implements MetricPoller
pollImpl(boolean)
to return a list and all filtering
will be taken care of by the provided implementation of poll(com.netflix.servo.publish.MetricFilter)
.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
BaseMetricPoller() |
Modifier and Type | Method and Description |
---|---|
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.
|
abstract java.util.List<Metric> |
pollImpl(boolean reset)
Return a list of all current metrics for this poller.
|
public abstract java.util.List<Metric> pollImpl(boolean reset)
public final java.util.List<Metric> poll(MetricFilter filter)
poll
in interface MetricPoller
filter
- retricts the set of metricspublic final java.util.List<Metric> poll(MetricFilter filter, boolean reset)
poll
in interface MetricPoller
filter
- retricts the set of metricsreset
- ignored. This is kept for backwards compatibility only.