280281282283284285286287288289290
for (TransportConnection connection : connections) { ss.stop(connection); } server = null; ss.throwFirstException(); LOG.info("Connector " + getName() + " Stopped"); } // Implementation methods // -------------------------------------------------------------------------
823824825826827828829830831832833
MDC.remove("activemq.broker"); // and clear start date startDate = null; stopper.throwFirstException(); } public boolean checkQueueSize(String queueName) { long count = 0; long queueSize = 0;
378379380381382383384385386387388
// stuck waiting for it to start up. startedLatch.countDown(); startedLatch.countDown(); localStartedLatch.countDown(); ss.throwFirstException(); } } if (remoteBrokerInfo != null) { brokerService.getBroker().removeBroker(null, remoteBrokerInfo);
117118119120121122123124125126127
} catch (JMSException e) { stopper.onException(this, e); } } stopper.throwFirstException(); } public ObjectPoolFactory getPoolFactory() { if (poolFactory == null) { poolFactory = createPoolFactory();
305306307308309310311312313314315
log.debug("Caught exception stopping", e); } finally { ServiceStopper ss = new ServiceStopper(); ss.stop(localBroker); ss.stop(remoteBroker); ss.throwFirstException(); } } log.debug(localBrokerName+ " bridge to " + remoteBrokerName + " stopped"); }
465466467468469470471472473474475
stopper.stop(getManagementContext()); } log.info("ActiveMQ JMS Message Broker (" + getBrokerName()+", "+brokerId+") stopped"); stopper.throwFirstException(); } protected void stopAllConnectors(ServiceStopper stopper) { for (Iterator iter = getNetworkConnectors().iterator(); iter.hasNext();) {
186187188189190191192193194195196
public void stop() throws Exception { stopped = true; ServiceStopper ss = new ServiceStopper(); doStop(ss); ss.throwFirstException(); } public PolicyMap getDestinationPolicy(){ return brokerService != null ? brokerService.getDestinationPolicy() : null; }
285286287288289290291292293294295
for (TransportConnection connection : connections) { ss.stop(connection); } server = null; ss.throwFirstException(); LOG.info("Connector {} stopped", getName()); } // Implementation methods // -------------------------------------------------------------------------
308309310311312313314315316317318
// stuck waiting for it to start up. startedLatch.countDown(); startedLatch.countDown(); localStartedLatch.countDown(); ss.throwFirstException(); } } LOG.info("{} bridge to {} stopped", configuration.getBrokerName(), remoteBrokerName); }
824825826827828829830831832833834