233234235236237238239240241242243
} public void stop() throws Exception { ServiceStopper ss = new ServiceStopper(); if( discoveryAgent!=null ) { ss.stop(discoveryAgent); } if (server != null) { ss.stop(server); } if (this.statusDector != null){
236237238239240241242243244245246
ServiceStopper ss = new ServiceStopper(); if( discoveryAgent!=null ) { ss.stop(discoveryAgent); } if (server != null) { ss.stop(server); } if (this.statusDector != null){ this.statusDector.stop(); }
244245246247248249250251252253254
this.statusDector.stop(); } for (Iterator iter = connections.iterator(); iter.hasNext();) { TransportConnection c = (TransportConnection) iter.next(); ss.stop(c); } ss.throwFirstException(); log.info("Connector "+getName()+" Stopped"); }
171172173174175176177178179180181
remoteBroker.setTransportListener(null); localBroker.oneway(new ShutdownInfo()); remoteBroker.oneway(new ShutdownInfo()); } finally { ServiceStopper ss = new ServiceStopper(); ss.stop(localBroker); ss.stop(remoteBroker); ss.throwFirstException(); } }
172173174175176177178179180181182
localBroker.oneway(new ShutdownInfo()); remoteBroker.oneway(new ShutdownInfo()); } finally { ServiceStopper ss = new ServiceStopper(); ss.stop(localBroker); ss.stop(remoteBroker); ss.throwFirstException(); } } protected void serviceRemoteException(IOException error) {
427428429430431432433434435436437
ServiceStopper stopper = new ServiceStopper(); if (services != null) { for (int i = 0; i < services.length; i++) { Service service = services[i]; stopper.stop(service); } } stopAllConnectors(stopper);
438439440441442443444445446447448
//remove any VMTransports connected VMTransportFactory.stopped(getBrokerName()); stopper.stop(persistenceAdapter); if (broker != null) { stopper.stop(broker); } if(tempDataStore!=null){
441442443444445446447448449450451
stopper.stop(persistenceAdapter); if (broker != null) { stopper.stop(broker); } if(tempDataStore!=null){ tempDataStore.close(); }
460461462463464465466467468469470
catch (Exception e) { stopper.onException(mbeanServer, e); } } } stopper.stop(getManagementContext()); } log.info("ActiveMQ JMS Message Broker (" + getBrokerName()+", "+brokerId+") stopped"); stopper.throwFirstException();
6061626364656667686970
next.start(); } public void stop() throws Exception { ServiceStopper ss = new ServiceStopper(); ss.stop(discoveryAgent); ss.stop(next); ss.throwFirstException(); } public void onServiceAdd(DiscoveryEvent event) {