|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.publish.JmxMetricPoller
public final class JmxMetricPoller
Generic poller for fetching simple data from JMX.
| Constructor Summary | |
|---|---|
JmxMetricPoller(JmxConnector connector,
java.util.List<javax.management.ObjectName> queries,
MetricFilter counters)
Creates a new instance that polls mbeans matching the provided object name patterns. |
|
JmxMetricPoller(JmxConnector connector,
javax.management.ObjectName query,
MetricFilter counters)
Creates a new instance that polls mbeans matching the provided object name pattern. |
|
| 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 JmxMetricPoller(JmxConnector connector,
javax.management.ObjectName query,
MetricFilter counters)
connector - used to get a connection to an MBeanServerquery - object name pattern for selecting mbeanscounters - metrics matching this filter will be treated as
counters, all others will be gauges
public JmxMetricPoller(JmxConnector connector,
java.util.List<javax.management.ObjectName> queries,
MetricFilter counters)
connector - used to get a connection to an MBeanServerqueries - object name patterns for selecting mbeanscounters - metrics matching this filter will be treated as
counters, all others will be gauges| 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||