Package org.apache.activemq.broker

Examples of org.apache.activemq.broker.BrokerService.waitUntilStopped()


    runTest(appCtx, eeUimaEngine, broker2.getConnectorByName(DEFAULT_BROKER_URL_KEY_2).getUri().toString(),
            "TopLevelTaeQueue", 1, PROCESS_LATCH);   
    super.cleanBroker(broker2);

    broker2.stop();
    broker2.waitUntilStopped();

  }
 
 
  /**
 
View Full Code Here


        }
      }
      uimaAsEngine.stop();
      super.cleanBroker(broker2);
      broker2.stop();
      broker2.waitUntilStopped();

  }
 
  /**
   * Tests support for ActiveMQ failover protocol expressed in broker
View Full Code Here

      }
      uimaAsEngine.stop();
      super.cleanBroker(broker2);

      broker2.stop();
      broker2.waitUntilStopped();

  }
 
  /**
   * This test starts a secondary broker, starts NoOp Annotator, and
View Full Code Here

      for (int i = 0; i < 15; i++) {
       
        if ( i == 10 ) {
          //  Stop the broker
          broker2.stop();
          broker2.waitUntilStopped();
        }
        CAS cas = uimaAsEngine.getCAS();
        cas.setDocumentText("Some Text");
        System.out.println("UIMA AS Client Sending CAS#" + (i + 1) + " Request to a Service");
        try {
View Full Code Here

      int errorCount=0;
      for (int i = 0; i < 20; i++) {
       
        if ( i == 5 ) {
          broker2.stop();
          broker2.waitUntilStopped();
        } else if ( i == 10 ) {
          //  restart the broker
          System.setProperty("activemq.broker.jmx.domain","org.apache.activemq.test");
          broker2 = setupSecondaryBroker(true);
         
View Full Code Here

      //  expecting 5 failures due to broker missing
      if ( errorCount != 5 ) {
        fail("Expected 5 failures due to broker down, instead received:"+errorCount+" failures");
      }
      broker2.waitUntilStopped();

  }
  /**
   * This test creates 4 UIMA AS clients and runs each in a separate thread. There is a single
   * shared jms connection to a broker that each client uses. After initialization a client
View Full Code Here

      System.out.println("Stopping Broker - wait ...");
      if ( broker3 != null ) {
        super.cleanBroker(broker3);

        broker3.stop();
        broker3.waitUntilStopped();

      }
    }
}
  /**
 
View Full Code Here

     
      for (int i = 0; i < 15; i++) {
       
        if ( i == 10 ) {
          broker2.stop();
          broker2.waitUntilStopped();

        }
        CAS cas = uimaAsEngine.getCAS();
        cas.setDocumentText("Some Text");
        System.out.println("UIMA AS Client Sending CAS#" + (i + 1) + " Request to a Service");
View Full Code Here

      }
     
      uimaAsEngine.stop();
      super.cleanBroker(broker2);
      broker2.stop();
      broker2.waitUntilStopped();

  }
 
  public void testAsyncClientRecoveryFromBrokerStopAndRestart() throws Exception  {
    System.out.println("-------------- testAsyncClientRecoveryFromBrokerStopAndRestart -------------");
View Full Code Here

      waitUntilInitialized();

      for (int i = 0; i < 150; i++) {
        if ( i == 10 ) {
          broker2.stop();
          broker2.waitUntilStopped();

        } else if ( i == 20 ) {
          broker2 = setupSecondaryBroker(true);
          broker2.waitUntilStarted();
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.