Package org.apache.activemq.util

Examples of org.apache.activemq.util.ServiceStopper.stop()


    }

    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){
View Full Code Here


        ServiceStopper ss = new ServiceStopper();
        if( discoveryAgent!=null ) {
            ss.stop(discoveryAgent);
        }
        if (server != null) {
            ss.stop(server);
        }
        if (this.statusDector != null){
            this.statusDector.stop();
        }
       
View Full Code Here

            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");
    }
View Full Code Here

            remoteBroker.setTransportListener(null);
            localBroker.oneway(new ShutdownInfo());
            remoteBroker.oneway(new ShutdownInfo());
        } finally {
            ServiceStopper ss = new ServiceStopper();
            ss.stop(localBroker);
            ss.stop(remoteBroker);
            ss.throwFirstException();
        }
    }
   
View Full Code Here

            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) {
View Full Code Here

        ServiceStopper stopper = new ServiceStopper();
       
        if (services != null) {
            for (int i = 0; i < services.length; i++) {
                Service service = services[i];
                stopper.stop(service);
            }
        }
       
        stopAllConnectors(stopper);
View Full Code Here

       
        //remove any VMTransports connected
        VMTransportFactory.stopped(getBrokerName());


        stopper.stop(persistenceAdapter);

        if (broker != null) {
            stopper.stop(broker);
        }
        if(tempDataStore!=null){
View Full Code Here


        stopper.stop(persistenceAdapter);

        if (broker != null) {
            stopper.stop(broker);
        }
        if(tempDataStore!=null){
            tempDataStore.close();
        }
View Full Code Here

                    catch (Exception e) {
                        stopper.onException(mbeanServer, e);
                    }
                }
            }
            stopper.stop(getManagementContext());
        }

        log.info("ActiveMQ JMS Message Broker (" + getBrokerName()+", "+brokerId+") stopped");

        stopper.throwFirstException();
View Full Code Here

        next.start();
    }

    public void stop() throws Exception {
      ServiceStopper ss = new ServiceStopper();
      ss.stop(discoveryAgent);
      ss.stop(next);
      ss.throwFirstException();
    }

    public void onServiceAdd(DiscoveryEvent event) {
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.