Package net.sf.katta.node.monitor

Examples of net.sf.katta.node.monitor.JmxMonitor$JmxMonitorThread


public class JmxMonitorTest extends AbstractTest {

  @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

Related Classes of net.sf.katta.node.monitor.JmxMonitor$JmxMonitorThread

Copyright © 2018 www.massapicom. 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.