use of com.sun.messaging.jmq.util.admin.ServiceInfo 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.admin.ServiceInfo 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.admin.ServiceInfo 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.admin.ServiceInfo in project openmq by eclipse-ee4j.
the class ServiceMonitor method getMsgBytesIn.
public Long getMsgBytesIn() {
ServiceInfo si = ServiceUtil.getServiceInfo(service);
MetricCounters metrics = si.metrics;
if (metrics != null) {
return (Long.valueOf(metrics.messageBytesIn));
} else {
return (Long.valueOf(-1));
}
}
use of com.sun.messaging.jmq.util.admin.ServiceInfo 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));
}
}
Aggregations