Package com.tibco.tibjms.admin

Examples of com.tibco.tibjms.admin.DestinationInfo


            throw new HermesException(ex);
         }
      }
      else
      {
         DestinationInfo info = getDestinationInfo(destination);

         if (info != null)
         {
            return (int) info.getPendingMessageCount();
         }
         else
         {
            return 0;
         }
View Full Code Here


   public Map getStatistics(final DestinationConfig destination) throws JMSException
   {
      try
      {
         final DestinationInfo info = getDestinationInfo(destination);
         final TreeMap rval = new TreeMap();

         rval.putAll(PropertyUtils.describe(info));

         rval.remove("inboundStatistics");
         rval.remove("outboundStatistics");

         rval.put("inboundByteRate", new Long(info.getInboundStatistics().getByteRate()));
         rval.put("inboundMessageRate", new Long(info.getInboundStatistics().getMessageRate()));
         rval.put("inboundTotalBytes", new Long(info.getInboundStatistics().getTotalBytes()));
         rval.put("inboundTotalMessages", new Long(info.getInboundStatistics().getTotalMessages()));

         rval.put("outboundByteRate", new Long(info.getOutboundStatistics().getByteRate()));
         rval.put("outboundMessageRate", new Long(info.getOutboundStatistics().getMessageRate()));
         rval.put("outboundTotalBytes", new Long(info.getOutboundStatistics().getTotalBytes()));
         rval.put("outboundTotalMessages", new Long(info.getOutboundStatistics().getTotalMessages()));

         return rval;
      }
      catch (IllegalAccessException e)
      {
View Full Code Here

TOP

Related Classes of com.tibco.tibjms.admin.DestinationInfo

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.