|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.publish.MonitorRegistryMetricPoller
public final class MonitorRegistryMetricPoller
Poller for fetching Monitor metrics
from a monitor registry.
| Constructor Summary | |
|---|---|
MonitorRegistryMetricPoller()
Creates a new instance using DefaultMonitorRegistry. |
|
MonitorRegistryMetricPoller(MonitorRegistry registry)
Creates a new instance using the specified registry. |
|
MonitorRegistryMetricPoller(MonitorRegistry registry,
long cacheTTL,
java.util.concurrent.TimeUnit unit)
Creates a new instance using the specified registry and a time limiter. |
|
MonitorRegistryMetricPoller(MonitorRegistry registry,
long cacheTTL,
java.util.concurrent.TimeUnit unit,
boolean useLimiter)
Creates a new instance using the specified registry. |
|
| 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. |
void |
shutdown()
Shutsdown the thread executor used for time limiting the get value calls. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MonitorRegistryMetricPoller()
DefaultMonitorRegistry.
public MonitorRegistryMetricPoller(MonitorRegistry registry)
registry - registry to query for annotated objects
public MonitorRegistryMetricPoller(MonitorRegistry registry,
long cacheTTL,
java.util.concurrent.TimeUnit unit)
registry - registry to query for annotated objectscacheTTL - how long to cache the filtered monitor list from the registryunit - time unit for the cache ttl
public MonitorRegistryMetricPoller(MonitorRegistry registry,
long cacheTTL,
java.util.concurrent.TimeUnit unit,
boolean useLimiter)
registry - registry to query for annotated objectscacheTTL - how long to cache the filtered monitor list from the registryunit - time unit for the cache ttluseLimiter - whether to use a time limiter for getting the values from the monitors| Method Detail |
|---|
public java.util.List<Metric> poll(MetricFilter filter)
poll in interface MetricPollerfilter - retricts the set of metrics
public 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
public void shutdown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||