@Test public void testNonNumericMetrics() throws Exception { MapMXBean mapMXBean = new MapMXBean(); try { MetricPoller poller = new JmxMetricPoller( new LocalJmxConnector(), Collections.singletonList(new ObjectName("com.netflix.servo.test:*")), MATCH_ALL, false, null); List<Metric> metrics = poller.poll(config -> config.getName().equals("StringValue")); assertEquals(metrics.size(), 1); assertEquals(metrics.get(0).getValue(), "AStringResult"); } finally { mapMXBean.destroy(); } }
public List<Metric> poll(MetricFilter filter) { return poll(filter, false); }
JmxMetricPoller implements MetricPoller { public List<Metric> poll(MetricFilter filter) { return poll(filter, false); } }
JmxMetricPoller implements MetricPoller { public List<Metric> poll(MetricFilter filter) { return poll(filter, false); } JmxMetricPoller(
      JmxConnector connector, ObjectName query, MetricFilter counters);  JmxMetricPoller(
      JmxConnector connector, List<ObjectName> queries, MetricFilter counters);  JmxMetricPoller(
      JmxConnector connector, List<ObjectName> queries, MetricFilter counters,
      boolean onlyNumericMetrics, List<Tag> defaultTags); }
JmxMetricPoller implements MetricPoller { public List<Metric> poll(MetricFilter filter) { return poll(filter, false); } JmxMetricPoller(
      JmxConnector connector, ObjectName query, MetricFilter counters);  JmxMetricPoller(
      JmxConnector connector, List<ObjectName> queries, MetricFilter counters);  JmxMetricPoller(
      JmxConnector connector, List<ObjectName> queries, MetricFilter counters,
      boolean onlyNumericMetrics, List<Tag> defaultTags); List<Metric> poll(MetricFilter filter); List<Metric> poll(MetricFilter filter, boolean reset); }
JmxMetricPoller implements MetricPoller { public List<Metric> poll(MetricFilter filter) { return poll(filter, false); } JmxMetricPoller(
      JmxConnector connector, ObjectName query, MetricFilter counters);  JmxMetricPoller(
      JmxConnector connector, List<ObjectName> queries, MetricFilter counters);  JmxMetricPoller(
      JmxConnector connector, List<ObjectName> queries, MetricFilter counters,
      boolean onlyNumericMetrics, List<Tag> defaultTags); List<Metric> poll(MetricFilter filter); List<Metric> poll(MetricFilter filter, boolean reset);  }