@Test public void testGenerateSamples() throws Exception { System.out.println("generateSamples"); PerfMonSampleGenerator collector = new Gen(); UnavailableAgentConnector instance = new UnavailableAgentConnector(new IOException()); instance.generateSamples(collector); }
public void generateSamples(PerfMonSampleGenerator collector) throws IOException { collector.generateErrorSample(getLabel(false), cause.toString()); }
UnavailableAgentConnector implements PerfMonAgentConnector { public void generateSamples(PerfMonSampleGenerator collector) throws IOException { collector.generateErrorSample(getLabel(false), cause.toString()); } }
UnavailableAgentConnector implements PerfMonAgentConnector { public void generateSamples(PerfMonSampleGenerator collector) throws IOException { collector.generateErrorSample(getLabel(false), cause.toString()); } UnavailableAgentConnector(IOException e); }
UnavailableAgentConnector implements PerfMonAgentConnector { public void generateSamples(PerfMonSampleGenerator collector) throws IOException { collector.generateErrorSample(getLabel(false), cause.toString()); } UnavailableAgentConnector(IOException e); void setMetricType(String metric); void setParams(String params); void connect(); void disconnect(); String getLabel(boolean translateHost); void generateSamples(PerfMonSampleGenerator collector); void addMetric(String metric, String params, String label); }
UnavailableAgentConnector implements PerfMonAgentConnector { public void generateSamples(PerfMonSampleGenerator collector) throws IOException { collector.generateErrorSample(getLabel(false), cause.toString()); } UnavailableAgentConnector(IOException e); void setMetricType(String metric); void setParams(String params); void connect(); void disconnect(); String getLabel(boolean translateHost); void generateSamples(PerfMonSampleGenerator collector); void addMetric(String metric, String params, String label);  }