Package org.jboss.messaging.core.plugin.contract

Examples of org.jboss.messaging.core.plugin.contract.Condition


      return maxSize;
   }
  
   public void setMaxSize(int maxSize) throws Exception
   {
      Condition cond = new JMSCondition(isQueue(), name);
     
      PostOffice postOffice = serverPeer.getPostOfficeInstance();
     
      Collection subs = postOffice.getBindingsForCondition(cond);
     
View Full Code Here


      lock.writeLock().acquire();

      log.debug(this + " adding binding from node " + nodeId + ", queue " + queueName +
         " with condition " + conditionText);

      Condition condition = conditionFactory.createCondition(conditionText);

      try
      {
         //Sanity
View Full Code Here

                                String routingKeyText,
                                Map queueNameNodeIdMap) throws Exception
   {
      if (trace) { log.trace(this + " routing from cluster " + message + ", routing key " + routingKeyText + ", map " + queueNameNodeIdMap); }

      Condition routingKey = conditionFactory.createCondition(routingKeyText);

      lock.readLock().acquire();

      // Need to reference the message
      MessageReference ref = null;
View Full Code Here

   // Protected ------------------------------------------------------------------------------------

   protected void addToConditionMap(Binding binding)
   {
      Condition condition = binding.getCondition();
      ClusteredBindings bindings = (ClusteredBindings)conditionMap.get(condition);

      if (bindings == null)
      {
         bindings = new DefaultClusteredBindings(currentNodeId);
View Full Code Here

      Iterator iter = bindings.iterator();

      while (iter.hasNext())
      {
         BindingInfo info = (BindingInfo)iter.next();
         Condition condition = conditionFactory.createCondition(info.getConditionText());
         Binding binding =
            createBinding(info.getNodeId(), condition, info.getQueueName(), info.getChannelId(),
                          info.getFilterString(), info.isDurable(), true);

         if (binding.getNodeID() == this.currentNodeId)
View Full Code Here

            long channelID = rs.getLong(5);
                      
            boolean isClustered = rs.getString(6).equals("Y");

            Condition condition = conditionFactory.createCondition(conditionText);
           
            if (nonClusteredOnly && isClustered)
            {
               // Don't want to load clustered bindings
            }
View Full Code Here

      if (trace) { log.trace(this + " added " + binding + " to name map"); }
   }

   protected void addToConditionMap(Binding binding)
   {
      Condition condition = binding.getCondition();

      Bindings bindings = (Bindings)conditionMap.get(condition);

      if (bindings == null)
      {
View Full Code Here

      {        
         Message msg = CoreMessageFactory.createCoreMessage(msgCount++, persistent, null);     
        
         MessageReference ref = ms.reference(msg);        
        
         Condition condition = conditionFactory.createCondition(conditionText);
        
         boolean routed = office.route(ref, condition, null);        
        
         assertTrue(routed);
        
View Full Code Here

TOP

Related Classes of org.jboss.messaging.core.plugin.contract.Condition

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.