Package org.apache.activemq.util

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


            return;
        }
        shuttingDown.set(true);
        ServiceStopper ss = new ServiceStopper();
        ss.stop(localTransport);
        ss.stop(remoteTransport);
        ss.throwFirstException();
    }
   
}
View Full Code Here


    }

    public void stop() throws Exception {
        ServiceStopper ss = new ServiceStopper();
        if (this.server != null) {
            ss.stop(this.server);
        }
        for (Iterator iter = connections.iterator(); iter.hasNext();) {
            log.info("Connector stopped: Stopping proxy.");
            ss.stop((Service) iter.next());
        }
View Full Code Here

        if (this.server != null) {
            ss.stop(this.server);
        }
        for (Iterator iter = connections.iterator(); iter.hasNext();) {
            log.info("Connector stopped: Stopping proxy.");
            ss.stop((Service) iter.next());
        }
        ss.throwFirstException();
        log.info("Proxy Connector " + getName() + " Stopped");
    }
   
View Full Code Here

    }

    public void stop() throws Exception {
        ServiceStopper ss = new ServiceStopper();
        if (discoveryAgent != null) {
            ss.stop(discoveryAgent);
        }
        if (server != null) {
            ss.stop(server);
            server = null;
        }
View Full Code Here

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

            this.statusDector.stop();
        }

        for (Iterator<TransportConnection> iter = connections.iterator(); iter.hasNext();) {
            TransportConnection c = iter.next();
            ss.stop(c);
        }
        ss.throwFirstException();
        LOG.info("Connector " + getName() + " Stopped");
    }
View Full Code Here

            connected=false;

            for (Iterator<FanoutTransportHandler> iter = transports.iterator(); iter.hasNext();) {
                FanoutTransportHandler th = iter.next();
                if (th.transport != null) {
                    ss.stop(th.transport);
                }
            }

            LOG.debug("Stopped: " + this);
            ss.throwFirstException();
View Full Code Here

        LOG.info("ActiveMQ Message Broker (" + getBrokerName() + ", " + brokerId + ") is shutting down");
        removeShutdownHook();
        ServiceStopper stopper = new ServiceStopper();
        if (services != null) {
            for (Service service : services) {
                stopper.stop(service);
            }
        }
        stopAllConnectors(stopper);
        // remove any VMTransports connected
        // this has to be done after services are stopped,
View Full Code Here

        // this has to be done after services are stopped,
        // to avoid timimg issue with discovery (spinning up a new instance)
        BrokerRegistry.getInstance().unbind(getBrokerName());
        VMTransportFactory.stopped(getBrokerName());
        if (broker != null) {
            stopper.stop(broker);
        }
        if (tempDataStore != null) {
            tempDataStore.close();
        }
        stopper.stop(persistenceAdapter);
View Full Code Here

            stopper.stop(broker);
        }
        if (tempDataStore != null) {
            tempDataStore.close();
        }
        stopper.stop(persistenceAdapter);
        if (isUseJmx()) {
            stopper.stop(getManagementContext());
        }
        // Clear SelectorParser cache to free memory
        SelectorParser.clearCache();
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.