|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.publish.CompositeMetricPoller
public class CompositeMetricPoller
Combines results from a list of metric pollers. This clas
| Constructor Summary | |
|---|---|
CompositeMetricPoller(java.util.Map<java.lang.String,MetricPoller> pollers,
java.util.concurrent.ExecutorService executor,
long timeout)
Creates a new instance for a set of pollers. |
|
| 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 |
|---|
public CompositeMetricPoller(java.util.Map<java.lang.String,MetricPoller> pollers,
java.util.concurrent.ExecutorService executor,
long timeout)
pollers - a set of pollers to collect data from, the map key for a
poller is used as a name identify a particular poller
for logging and error messagesexecutor - an executor to use for executing the poll methodstimeout - timeout in milliseconds used when getting the value
from the future| Method Detail |
|---|
public final java.util.List<Metric> poll(MetricFilter filter)
poll in interface MetricPollerfilter - retricts the set of metrics
public final java.util.List<Metric> poll(MetricFilter filter,
boolean reset)
poll in interface MetricPollerfilter - retricts the set of metricsreset - should this poller trigger a reset for
ResettableMonitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||