use of com.sun.messaging.jmq.util.MetricCounters in project openmq by eclipse-ee4j.
the class ServiceMonitor method getNumActiveThreads.
public Integer getNumActiveThreads() {
ServiceInfo si = ServiceUtil.getServiceInfo(service);
MetricCounters metrics = si.metrics;
if (metrics != null) {
return (Integer.valueOf(metrics.threadsActive));
} else {
return (Integer.valueOf(-1));
}
}
use of com.sun.messaging.jmq.util.MetricCounters in project openmq by eclipse-ee4j.
the class ServiceMonitor method getNumPktsOut.
public Long getNumPktsOut() {
ServiceInfo si = ServiceUtil.getServiceInfo(service);
MetricCounters metrics = si.metrics;
if (metrics != null) {
return (Long.valueOf(metrics.packetsOut));
} else {
return (Long.valueOf(-1));
}
}
use of com.sun.messaging.jmq.util.MetricCounters in project openmq by eclipse-ee4j.
the class ServiceMonitor method getNumMsgsOut.
public Long getNumMsgsOut() {
ServiceInfo si = ServiceUtil.getServiceInfo(service);
MetricCounters metrics = si.metrics;
if (metrics != null) {
return (Long.valueOf(metrics.messagesOut));
} else {
return (Long.valueOf(-1));
}
}
Aggregations