Package com.sun.messaging.jmq.util.admin

Examples of com.sun.messaging.jmq.util.admin.ServiceInfo


    public String getName()  {
  return (service);
    }

    public Integer getState()  {
  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  return (new Integer(ServiceUtil.toExternalServiceState(si.state)));
    }
View Full Code Here


  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  return (new Integer(ServiceUtil.toExternalServiceState(si.state)));
    }

    public String getStateLabel()  {
  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  return (ServiceState.toString(ServiceUtil.toExternalServiceState(si.state)));
    }
View Full Code Here

  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  return (ServiceState.toString(ServiceUtil.toExternalServiceState(si.state)));
    }

    public Integer getPort()  {
  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  return (new Integer(si.port));
    }
View Full Code Here

  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));
View Full Code Here

      return (new Integer(-1));
  }
    }

    public Integer getNumConnections()  {
  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  return (new Integer(si.nConnections));
    }
View Full Code Here

    public long getNumConnectionsRejected()  {
  return (numConnectionsRejected);
    }

    public Long getNumMsgsIn()  {
  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  MetricCounters metrics = si.metrics;
  if (metrics != null)  {
      return (new Long(metrics.messagesIn));
  } else  {
      return (new Long(-1));
View Full Code Here

      return (new Long(-1));
  }
    }

    public Long getNumMsgsOut()  {
  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  MetricCounters metrics = si.metrics;
  if (metrics != null)  {
      return (new Long(metrics.messagesOut));
  } else  {
      return (new Long(-1));
View Full Code Here

      return (new Long(-1));
  }
    }

    public Long getMsgBytesIn()  {
  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  MetricCounters metrics = si.metrics;
  if (metrics != null)  {
      return (new Long(metrics.messageBytesIn));
  } else  {
      return (new Long(-1));
View Full Code Here

      return (new Long(-1));
  }
    }

    public Long getMsgBytesOut()  {
  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  MetricCounters metrics = si.metrics;
  if (metrics != null)  {
      return (new Long(metrics.messageBytesOut));
  } else  {
      return (new Long(-1));
View Full Code Here

      return (new Long(-1));
  }
    }

    public Long getNumPktsIn()  {
  ServiceInfo si = ServiceUtil.getServiceInfo(service);
  MetricCounters metrics = si.metrics;
  if (metrics != null)  {
      return (new Long(metrics.packetsIn));
  } else  {
      return (new Long(-1));
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.util.admin.ServiceInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.