Examples of Monitors


Examples of jfun.yan.monitoring.Monitors

    assertTrue(mon.isConstructing());
    assertFalse(mon.isConstructed());
    assertTrue(mon.isConstructionFailed());
    assertFalse(mon.isInvoking());
    yan.registerComponent("target",
        new Monitors(m).static_method(MonitoredObject.class, "instance")
        .withArgument(2, Components.value(arg2)));
    yan.getInstance("target");
    assertTrue(mon.isInvoking());
    assertTrue(mon.isInvoked());
    assertFalse(mon.isInvocationFailed());
View Full Code Here

Examples of org.radargun.sysmonitor.Monitors

   public DistStageAck executeOnSlave() {
      if (slaveState.get(Monitors.MONITORS) != null) {
         log.warn("Monitors are already started");
         return successfulResponse();
      }
      Monitors monitor = new Monitors(slaveState, frequency, timeUnit);
      monitor.addMonitor(new CpuUsageMonitor(jmxConnectionProvider, slaveState.getTimeline()));
      monitor.addMonitor(new MemoryUsageMonitor(jmxConnectionProvider, slaveState.getTimeline()));
      monitor.addMonitor(new GcMonitor(jmxConnectionProvider, slaveState.getTimeline()));
      monitor.addMonitor(new OpenFilesMonitor(jmxConnectionProvider, slaveState.getTimeline()));
      if (interfaceName != null) {
         monitor.addMonitor(NetworkBytesMonitor.createReceiveMonitor(interfaceName, slaveState.getTimeline()));
         monitor.addMonitor(NetworkBytesMonitor.createTransmitMonitor(interfaceName, slaveState.getTimeline()));
      }
      monitor.start();
      return successfulResponse();
   }
View Full Code Here

Examples of org.radargun.sysmonitor.Monitors

@Stage(doc = "Stop collecting JVM statistics on each slave node and return collected statistics to the master node.")
public class JVMMonitorStopStage extends AbstractDistStage {

   @Override
   public DistStageAck executeOnSlave() {
      Monitors monitor = (Monitors) slaveState.get(Monitors.MONITORS);
      if (monitor != null) {
         monitor.stop();
         return successfulResponse();
      } else {
         return errorResponse("No JVMMonitor object found on slave: " + slaveState.getSlaveIndex());
      }
   }
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.