Package org.olat.commons.coordinate.cluster.jms

Examples of org.olat.commons.coordinate.cluster.jms.ClusterEventBus


        result.append("\n0\n0\n");
      }
      result.append(instanceId);
    } else if (command.startsWith("jmsDelivery")) {
     
      final ClusterEventBus clusterEventBus = getClusterEventBus();
      if (clusterEventBus==null) {
        result.append("0\n0\n0\n");
      } else {
        SimpleProbe probe = clusterEventBus.getMrtgProbeJMSDeliveryTime();
        if (command.equals("jmsDeliveryAvg")) {
          result.append(roundedValueOf(probe.getAvg()));
        } else if (command.equals("jmsDeliveryMax")) {
          result.append(roundedValueOf(probe.getMax()));
        } else if (command.equals("jmsDeliveryCnt")) {
          result.append(roundedValueOf(probe.getNum()));
        } else if (command.equals("jmsDeliveryReset")) {
          probe.reset();
          result.append("0");
        }
        result.append("\n0\n0\n");
      }
      result.append(instanceId);
    } else if (command.startsWith("jmsProcessing")) {
     
      final ClusterEventBus clusterEventBus = getClusterEventBus();
      if (clusterEventBus==null) {
        result.append("0\n0\n0\n");
      } else {
        SimpleProbe probe = clusterEventBus.getMrtgProbeJMSProcessingTime();
        if (command.equals("jmsProcessingAvg")) {
          result.append(roundedValueOf(probe.getAvg()));
        } else if (command.equals("jmsProcessingMax")) {
          result.append(roundedValueOf(probe.getMax()));
        } else if (command.equals("jmsProcessingCnt")) {
          result.append(roundedValueOf(probe.getNum()));
        } else if (command.equals("jmsProcessingReset")) {
          probe.reset();
          result.append("0");
        }
        result.append("\n0\n0\n");
      }
      result.append(instanceId);
    } else if (command.startsWith("jmsWaiting")) {
     
      final ClusterEventBus clusterEventBus = getClusterEventBus();
      if (clusterEventBus==null) {
        result.append("0\n0\n0\n");
      } else {
        SimpleProbe probe = clusterEventBus.getMrtgProbeJMSLoad();
        if (command.equals("jmsWaitingAvg")) {
          result.append(roundedValueOf(probe.getAvg()));
        } else if (command.equals("jmsWaitingMax")) {
          result.append(roundedValueOf(probe.getMax()));
        } else if (command.equals("jmsWaitingCnt")) {
          result.append(roundedValueOf(probe.getNum()));
        } else if (command.equals("jmsWaitingReset")) {
          probe.reset();
          result.append("0");
        }
        result.append("\n0\n0\n");
      }
      result.append(instanceId);
    } else if (command.startsWith("jmsQueued")) {
     
      final ClusterEventBus clusterEventBus = getClusterEventBus();
      if (clusterEventBus==null) {
        result.append("0\n0\n0\n");
      } else {
        SimpleProbe probe = clusterEventBus.getMrtgProbeJMSEnqueueTime();
        if (command.equals("jmsQueuedAvg")) {
          result.append(roundedValueOf(probe.getAvg()));
        } else if (command.equals("jmsQueuedMax")) {
          result.append(roundedValueOf(probe.getMax()));
        } else if (command.equals("jmsQueuedCnt")) {
View Full Code Here

TOP

Related Classes of org.olat.commons.coordinate.cluster.jms.ClusterEventBus

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.