ServiceInfo si = ServiceUtil.getServiceInfo(service);
return (new Integer(si.port));
}
public Integer getNumActiveThreads() {
ServiceInfo si = ServiceUtil.getServiceInfo(service);
MetricCounters metrics = si.metrics;
if (metrics != null) {
return (new Integer(metrics.threadsActive));
} else {
return (new Integer(-1));