Package org.jboss.messaging.core.plugin.postoffice

Examples of org.jboss.messaging.core.plugin.postoffice.Binding


      // We deploy any queues corresponding to pre-existing durable subscriptions
      Collection bindings = serverPeer.getPostOfficeInstance().getBindingsForCondition(topicCond);
      Iterator iter = bindings.iterator();
      while (iter.hasNext())
      {
         Binding binding = (Binding)iter.next();
        
         Queue queue = binding.getQueue();
        
         String counterName = TopicService.SUBSCRIPTION_MESSAGECOUNTER_PREFIX + queue.getName();
        
         MessageCounter counter = serverPeer.getMessageCounterManager().getMessageCounter(counterName);
        
View Full Code Here


      if (subId == null || "".equals(subId.trim()))
      {
         return msgs;
      }
     
      Binding binding = serverPeer.getPostOfficeInstance().getBindingForQueueName(subId);
     
      if (binding == null)
      {
         throw new IllegalArgumentException("Cannot find subscription with id " + subId);
      }
     
      Selector sel = null;
     
      if (selector != null && "".equals(selector.trim()))
      {
         selector = null;
      }
        
      if (selector != null)
      { 
         sel = new Selector(selector);
      }
     
      List allMsgs = binding.getQueue().browse(sel);
     
      Iterator iter = allMsgs.iterator();
     
      while (iter.hasNext())
      {
View Full Code Here

     
      Iterator iter = bindings.iterator();
     
      while (iter.hasNext())
      {
         Binding binding = (Binding)iter.next();
        
         Queue queue = binding.getQueue();
        
         if (type == ALL || (type == DURABLE && queue.isRecoverable()) || (type == NON_DURABLE && !queue.isRecoverable()))
         {        
            String subName = null;
            String clientID = null;
View Full Code Here

     
      int count = 0;
     
      while (iter.hasNext())
      {
         Binding binding = (Binding)iter.next();
        
         if (type == ALL || (type == DURABLE && binding.getQueue().isRecoverable())
             || (type == NON_DURABLE && !binding.getQueue().isRecoverable()))
         {           
            count += binding.getQueue().getMessageCount();
         }
      }

      return count;
  
View Full Code Here

     
      int count = 0;
     
      while (iter.hasNext())
      {
         Binding binding = (Binding)iter.next();
        
         if ((binding.getQueue().isRecoverable() && durable) || (!binding.getQueue().isRecoverable() && !durable))
         {
            count++;
         }
      }
View Full Code Here

                  "</tr>");
     
      Iterator iter = bindings.iterator();
      while (iter.hasNext())
      {
         Binding binding = (Binding)iter.next();
        
         Queue queue = binding.getQueue();
        
         if (type == ALL || (type == DURABLE && queue.isRecoverable())
                  || (type == NON_DURABLE && !queue.isRecoverable()))
         {
           
            String filterString = queue.getFilter() != null ? binding.getQueue().getFilter().getFilterString() : null;
                    
            String subName = null;
            String clientID = null;
           
            if (queue.isRecoverable())
View Full Code Here

         // We deploy any queues corresponding to pre-existing durable subscriptions
         Collection bindings = postOffice.getBindingsForCondition(topicCond);
         Iterator iter = bindings.iterator();
         while (iter.hasNext())
         {
            Binding binding = (Binding)iter.next();
           
            PagingFilteredQueue queue = (PagingFilteredQueue)binding.getQueue();
                    
            //TODO We need to set the paging params this way since the post office doesn't store them
            //instead we should never create queues inside the postoffice - only do it at deploy time
            queue.setPagingParams(destination.getFullSize(), destination.getPageSize(), destination.getDownCacheSize());
           
View Full Code Here

         Collection bindings = postOffice.getBindingsForCondition(topicCond);
        
         Iterator iter = bindings.iterator();
         while (iter.hasNext())           
         {
            Binding binding = (Binding)iter.next();
           
            PagingFilteredQueue queue = (PagingFilteredQueue)binding.getQueue();
           
            if (!queue.isRecoverable())
            {
               queue.removeAllReferences();
              
View Full Code Here

        
         if (dest != null)
         {           
            PostOffice po = getPostOfficeInstance();
           
            Binding binding = po.getBindingForQueueName(dest.getName());
           
            if (binding != null && binding.getQueue().isActive())
            {
               dlq =  binding.getQueue();
            }
         }
      }
     
      return dlq;
View Full Code Here

         if (dest != null)
         {           
            PostOffice po = getPostOfficeInstance();
           
            Binding binding = po.getBindingForQueueName(dest.getName());
           
            if (binding != null && binding.getQueue().isActive())
            {
               expiryQueue =  binding.getQueue();
            }
         }
      }
     
      return expiryQueue;
View Full Code Here

TOP

Related Classes of org.jboss.messaging.core.plugin.postoffice.Binding

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.