@Test public void testParseGangliaCurrentMetricsWithOneHost() throws Exception { when(socket.getInputStream()).thenReturn( getClass().getResourceAsStream("/campinas.xml")); List<Host> hosts = gmondReader.getUpToDateHostsInfo(); assertEquals(1, hosts.size()); assertEquals("0.00", hosts.get(0).getMetricValue("load_one")); }
public List<Host> getUpToDateHostsInfo() throws GangliaException { return parseGangliaMetrics(getGangliaCurrentMetrics()); }
GmondDataReader { public List<Host> getUpToDateHostsInfo() throws GangliaException { return parseGangliaMetrics(getGangliaCurrentMetrics()); } }
GmondDataReader { public List<Host> getUpToDateHostsInfo() throws GangliaException { return parseGangliaMetrics(getGangliaCurrentMetrics()); } GmondDataReader(String host, int port); }
GmondDataReader { public List<Host> getUpToDateHostsInfo() throws GangliaException { return parseGangliaMetrics(getGangliaCurrentMetrics()); } GmondDataReader(String host, int port); List<Host> getUpToDateHostsInfo(); void setSocket(Socket socket); }
GmondDataReader { public List<Host> getUpToDateHostsInfo() throws GangliaException { return parseGangliaMetrics(getGangliaCurrentMetrics()); } GmondDataReader(String host, int port); List<Host> getUpToDateHostsInfo(); void setSocket(Socket socket);  }