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

Examples of org.jboss.messaging.core.plugin.postoffice.cluster.DefaultClusteredPostOffice.stop()


            office2.stop();
         }

         if (office3 != null)
         {
            office3.stop();
         }
      }
   }

   public void testCrashAfterPersist() throws Exception
View Full Code Here


            office1.stop();
         }

         if (office2 != null)
         {
            office2.stop();
         }
      }
   }

   public void testSimpleMessagePullCrashBeforeCommit() throws Throwable
View Full Code Here

         assertEquals(0, queue2.memoryRefCount());
         assertEquals(0, queue2.getDeliveringCount());

         //Now kill office 2 - this should cause office1 to remove the dead held transaction

         office2.stop();
         Thread.sleep(2000);

         assertTrue(office1.getHoldingTransactions().isEmpty());

         //The delivery should be cancelled back to the queue too
View Full Code Here

            office1.stop();
         }

         if (office2 != null)
         {
            office2.stop();
         }
      }
   }

   public void testSimpleMessagePullCrashAfterCommit() throws Throwable
View Full Code Here

         assertEquals(0, queue1.memoryRefCount());
         assertEquals(1, queue1.getDeliveringCount());

         //Now kill office 2 - this should cause office1 to remove the dead held transaction

         office2.stop();
         Thread.sleep(2000);

         assertTrue(office1.getHoldingTransactions().isEmpty());

         //The delivery should be committed
View Full Code Here

            office1.stop();
         }

         if (office2 != null)
         {
            office2.stop();
         }
      }
   }

   public void testFailHandleMessagePullResult() throws Throwable
View Full Code Here

            office1.stop();
         }

         if (office2 != null)
         {
            office2.stop();
         }
      }
   }

   protected void consumeAll(boolean persistent, boolean recoverable) throws Throwable
View Full Code Here

            office4.stop();
         }

         if (office5 != null)
         {
            office5.stop();
         }
      }
   }

   protected void consumeBitByBit(boolean persistent, boolean recoverable) throws Throwable
View Full Code Here

            office4.stop();
         }

         if (office5 != null)
         {
            office5.stop();
         }
      }
   }

   class ThrottleReceiver implements Receiver, Runnable
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.