Package net.sf.katta.node.monitor

Examples of net.sf.katta.node.monitor.JmxMonitor.startMonitoring()


  @Test
  public void testGetCpu() throws Exception {
    JmxMonitor monitor = new JmxMonitor();
    String nodeId = "someId";
    InteractionProtocol protocol = mock(InteractionProtocol.class);
    monitor.startMonitoring(nodeId, protocol);
    Thread.sleep(1200);
    verify(protocol, atLeastOnce()).setMetric(eq(nodeId), (MetricsRecord) anyObject());
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.