@Test public void testConnect() throws Exception { System.out.println("connect"); instance.connect(); }
public void connect() throws IOException { log.debug(metrics.toString()); ArrayList<String> labels = new ArrayList<>(metrics.keySet()); metricLabels = labels.toArray(new String[labels.size()]); ArrayList<String> arr = new ArrayList<>(metrics.values()); String[] m = arr.toArray(new String[arr.size()]); transport.startWithMetrics(m); }
NewAgentConnector implements PerfMonAgentConnector { public void connect() throws IOException { log.debug(metrics.toString()); ArrayList<String> labels = new ArrayList<>(metrics.keySet()); metricLabels = labels.toArray(new String[labels.size()]); ArrayList<String> arr = new ArrayList<>(metrics.values()); String[] m = arr.toArray(new String[arr.size()]); transport.startWithMetrics(m); } }
NewAgentConnector implements PerfMonAgentConnector { public void connect() throws IOException { log.debug(metrics.toString()); ArrayList<String> labels = new ArrayList<>(metrics.keySet()); metricLabels = labels.toArray(new String[labels.size()]); ArrayList<String> arr = new ArrayList<>(metrics.values()); String[] m = arr.toArray(new String[arr.size()]); transport.startWithMetrics(m); }  }
NewAgentConnector implements PerfMonAgentConnector { public void connect() throws IOException { log.debug(metrics.toString()); ArrayList<String> labels = new ArrayList<>(metrics.keySet()); metricLabels = labels.toArray(new String[labels.size()]); ArrayList<String> arr = new ArrayList<>(metrics.values()); String[] m = arr.toArray(new String[arr.size()]); transport.startWithMetrics(m); }  void setTransport(Transport atransport); void connect(); void disconnect(); void generateSamples(PerfMonSampleGenerator collector); void addMetric(String metric, String params, String label); }
NewAgentConnector implements PerfMonAgentConnector { public void connect() throws IOException { log.debug(metrics.toString()); ArrayList<String> labels = new ArrayList<>(metrics.keySet()); metricLabels = labels.toArray(new String[labels.size()]); ArrayList<String> arr = new ArrayList<>(metrics.values()); String[] m = arr.toArray(new String[arr.size()]); transport.startWithMetrics(m); }  void setTransport(Transport atransport); void connect(); void disconnect(); void generateSamples(PerfMonSampleGenerator collector); void addMetric(String metric, String params, String label);  }