Examples of DurableInfo


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

                v = new Vector();
   
                Iterator itr = s.iterator();
                while (itr.hasNext()) {
                    Subscription sub = (Subscription)itr.next();
                    DurableInfo di = new DurableInfo();
                    di.name = sub.getDurableName();
                    di.clientID = sub.getClientID();
                    di.isActive = sub.isActive();
                    di.activeCount = sub.getActiveSubscriberCnt();
                    di.isShared = sub.getShared();
View Full Code Here

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

                    row[indx ++] = ar.getString(ar.I_JMQCMD_DUR_STATE);
                    bcp.addTitle(row);

                    Enumeration thisEnum = durs.elements();
                    while (thisEnum.hasMoreElements()) {
                        DurableInfo dInfo = (DurableInfo)thisEnum.nextElement();
                        indx = 0;
                        row[indx ++] = (dInfo.name == null) ? "" : dInfo.name;
                        row[indx++] = (dInfo.clientID == null) ? "" : dInfo.clientID;
                        if (listDstName)
                            row[indx ++] = (dInfo.consumer == null) ? "" : dInfo.consumer.destination;
View Full Code Here

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

                return "";

      int i = 0;
            Enumeration e = durables.elements();
            while (e.hasMoreElements()) {
                DurableInfo durInfo = (DurableInfo)e.nextElement();

                if (col == 0 && i == row)
        return ((durInfo.name == null) ? "" : durInfo.name)
                else if (col == 1 && i == row)
        return ((durInfo.clientID == null) ? "" : durInfo.clientID)
View Full Code Here

Examples of com.tibco.tibjms.admin.DurableInfo

   {
      if (destination.isDurable())
      {
         try
         {
            DurableInfo info = getAdmin().getDurable(destination.getClientID(), getHermes().getConnection().getClientID());

            if (info != null)
            {
               return (int) info.getPendingMessageCount();
            }
            else
            {
               throw new HermesException("No durable information availble for clientID=" + getHermes().getConnection().getClientID() + ", durableName="
                     + destination.getClientID());
            }
         }
         catch (TibjmsAdminException ex)
         {
            throw new HermesException(ex);
         }
      }
      else
      {
         DestinationInfo info = getDestinationInfo(destination);

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

Examples of com.tibco.tibjms.admin.DurableInfo

         final Collection<DestinationConfig> rval = new ArrayList<DestinationConfig>();
         final DurableInfo[] dInfos = getAdmin().getDurables(topicName);

         for (int j = 0; j < dInfos.length; j++)
         {
            DurableInfo dInfo = dInfos[j];

            final DestinationConfig dConfig = HermesBrowser.getConfigDAO().createDestinationConfig();

            dConfig.setDurable(true);
            dConfig.setName(jndiName == null ? dInfo.getTopicName() : jndiName);
            dConfig.setClientID(dInfo.getDurableName());
            dConfig.setSelector(dInfo.getSelector());
            dConfig.setDomain(Domain.TOPIC.getId());

            rval.add(dConfig);
         }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.