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")) {