Examples of waitUntilStopped()


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

            broker.start();
            assertEquals(1, countMbeans(networkedBroker, "NetworkBridge", 5000));
            assertEquals("restart number: " + i, 1, countMbeans(broker, "Connection", 10000));
           
            broker.stop();
            broker.waitUntilStopped();
            assertEquals(0, countMbeans(broker, "stopped"));
        }
       
        //assertEquals(0, countMbeans(networkedBroker, "NetworkBridge"));
        assertEquals(1, countMbeans(networkedBroker, "Connector"));
View Full Code Here

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

            doTestNetworkSendReceive(brokerB, currentMaster);

            LOG.info("Stopping " + currentMaster.getBrokerObjectName().getKeyProperty("BrokerName"));
            currentMaster.stop();
            currentMaster.waitUntilStopped();
        }

        done.set(true);
        LOG.info("all done");
        executorService.shutdownNow();
View Full Code Here

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

            final BrokerService bs = it.next();

            try {
                bs.stop();
                bs.waitUntilStopped();
            } catch (Throwable t) {
                //Ignore
            }

            it.remove();
View Full Code Here

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

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

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

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

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

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

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

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

      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

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

      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

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

      //  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

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

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

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

      }
    }
}
  /**
 
View Full Code Here

Examples of org.apache.qpid.disttest.client.Client.waitUntilStopped()

                @Override
                public void run()
                {
                    LOGGER.info("Starting client " + client.getClientName());
                    client.start();
                    client.waitUntilStopped();
                    LOGGER.info("Stopped client " + client.getClientName());
                }
            });
            clientThread.start();
        }
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.