@Test public void testMultiple() throws Exception { Map<String, MetricPoller> pollers = new HashMap<>(); pollers.put("p1", newPoller(0)); pollers.put("p2", newPoller(0)); ExecutorService exec = Executors.newFixedThreadPool(1); MetricPoller poller = new CompositeMetricPoller(pollers, exec, 10000); assertEquals(poller.poll(MATCH_ALL), UnmodifiableList.copyOf(Iterables.concat(mkList(), mkList()))); }
public final List<Metric> poll(MetricFilter filter) { return poll(filter, false); }
CompositeMetricPoller implements MetricPoller { public final List<Metric> poll(MetricFilter filter) { return poll(filter, false); } }
CompositeMetricPoller implements MetricPoller { public final List<Metric> poll(MetricFilter filter) { return poll(filter, false); } CompositeMetricPoller(
      Map<String, MetricPoller> pollers, ExecutorService executor, long timeout); }
CompositeMetricPoller implements MetricPoller { public final List<Metric> poll(MetricFilter filter) { return poll(filter, false); } CompositeMetricPoller(
      Map<String, MetricPoller> pollers, ExecutorService executor, long timeout); final List<Metric> poll(MetricFilter filter); final List<Metric> poll(MetricFilter filter, boolean reset); }
CompositeMetricPoller implements MetricPoller { public final List<Metric> poll(MetricFilter filter) { return poll(filter, false); } CompositeMetricPoller(
      Map<String, MetricPoller> pollers, ExecutorService executor, long timeout); final List<Metric> poll(MetricFilter filter); final List<Metric> poll(MetricFilter filter, boolean reset);  }