use of com.sun.messaging.jmq.util.MetricCounters in project openmq by eclipse-ee4j.
the class ServiceMonitor method getMsgBytesOut.
public Long getMsgBytesOut() {
ServiceInfo si = ServiceUtil.getServiceInfo(service);
MetricCounters metrics = si.metrics;
if (metrics != null) {
return (Long.valueOf(metrics.messageBytesOut));
} else {
return (Long.valueOf(-1));
}
}
use of com.sun.messaging.jmq.util.MetricCounters in project openmq by eclipse-ee4j.
the class ServiceMonitor method getPktBytesIn.
public Long getPktBytesIn() {
ServiceInfo si = ServiceUtil.getServiceInfo(service);
MetricCounters metrics = si.metrics;
if (metrics != null) {
return (Long.valueOf(metrics.packetBytesIn));
} else {
return (Long.valueOf(-1));
}
}
use of com.sun.messaging.jmq.util.MetricCounters in project openmq by eclipse-ee4j.
the class ServiceMonitor method getNumPktsIn.
public Long getNumPktsIn() {
ServiceInfo si = ServiceUtil.getServiceInfo(service);
MetricCounters metrics = si.metrics;
if (metrics != null) {
return (Long.valueOf(metrics.packetsIn));
} else {
return (Long.valueOf(-1));
}
}
use of com.sun.messaging.jmq.util.MetricCounters in project openmq by eclipse-ee4j.
the class ServiceMonitor method getNumMsgsIn.
public Long getNumMsgsIn() {
ServiceInfo si = ServiceUtil.getServiceInfo(service);
MetricCounters metrics = si.metrics;
if (metrics != null) {
return (Long.valueOf(metrics.messagesIn));
} else {
return (Long.valueOf(-1));
}
}
use of com.sun.messaging.jmq.util.MetricCounters in project openmq by eclipse-ee4j.
the class MetricManager method reset.
public synchronized void reset() {
deadTotalsByService.clear();
lastSample = new MetricCounters();
}
Aggregations