27022703270427052706270727082709271027112712
runTest(appCtx, eeUimaEngine, broker2.getConnectorByName(DEFAULT_BROKER_URL_KEY_2).getUri().toString(), "TopLevelTaeQueue", 1, PROCESS_LATCH); super.cleanBroker(broker2); broker2.stop(); broker2.waitUntilStopped(); } /**
589590591592593594595596597598599
} } uimaAsEngine.stop(); super.cleanBroker(broker2); broker2.stop(); broker2.waitUntilStopped(); } /** * Tests support for ActiveMQ failover protocol expressed in broker
634635636637638639640641642643644
} uimaAsEngine.stop(); super.cleanBroker(broker2); broker2.stop(); broker2.waitUntilStopped(); } /** * This test starts a secondary broker, starts NoOp Annotator, and
666667668669670671672673674675676
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 {
715716717718719720721722723724725
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);
747748749750751752753754755756757
// 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
834835836837838839840841842843844
System.out.println("Stopping Broker - wait ..."); if ( broker3 != null ) { super.cleanBroker(broker3); broker3.stop(); broker3.waitUntilStopped(); } } } /**
864865866867868869870871872873874
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");
876877878879880881882883884885886
} uimaAsEngine.stop(); super.cleanBroker(broker2); broker2.stop(); broker2.waitUntilStopped(); } public void testAsyncClientRecoveryFromBrokerStopAndRestart() throws Exception { System.out.println("-------------- testAsyncClientRecoveryFromBrokerStopAndRestart -------------");
899900901902903904905906907908909
waitUntilInitialized(); for (int i = 0; i < 150; i++) { if ( i == 10 ) { broker2.stop(); broker2.waitUntilStopped(); } else if ( i == 20 ) { broker2 = setupSecondaryBroker(true); broker2.waitUntilStarted();