Package org.apache.activemq.util

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


    }

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


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

            localBroker.oneway(new ShutdownInfo());
        } catch (IOException e) {
            LOG.debug("Caught exception stopping", e);
        } finally {
            ServiceStopper ss = new ServiceStopper();
            ss.stop(localBroker);
            ss.stop(remoteBroker);
            ss.throwFirstException();
        }
    }
View Full Code Here

        } catch (IOException e) {
            LOG.debug("Caught exception stopping", e);
        } finally {
            ServiceStopper ss = new ServiceStopper();
            ss.stop(localBroker);
            ss.stop(remoteBroker);
            ss.throwFirstException();
        }
    }

    protected void serviceRemoteException(IOException error) {
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);
        stopper.stop(persistenceAdapter);
        if (broker != null) {
View Full Code Here

            for (Service service: services) {
                stopper.stop(service);
            }
        }
        stopAllConnectors(stopper);
        stopper.stop(persistenceAdapter);
        if (broker != null) {
            stopper.stop(broker);
        }
        if (tempDataStore != null) {
            tempDataStore.close();
View Full Code Here

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

                    } catch (Exception e) {
                        stopper.onException(mbeanServer, e);
                    }
                }
            }
            stopper.stop(getManagementContext());
        }
        // remove any VMTransports connected
        // this has to be done after services are stopped,
        // to avoid timimg issue with discovery (spinning up a new instance)
        BrokerRegistry.getInstance().unbind(getBrokerName());
View Full Code Here

                    remoteBroker.oneway(new ShutdownInfo());
                } catch (IOException e) {
                    LOG.debug("Caught exception stopping", e);
                } finally {
                    ServiceStopper ss = new ServiceStopper();
                    ss.stop(localBroker);
                    ss.stop(remoteBroker);
                    // Release the started Latch since another thread could be
                    // stuck waiting for it to start up.
                    startedLatch.countDown();
                    startedLatch.countDown();
View Full Code Here

                } catch (IOException e) {
                    LOG.debug("Caught exception stopping", e);
                } finally {
                    ServiceStopper ss = new ServiceStopper();
                    ss.stop(localBroker);
                    ss.stop(remoteBroker);
                    // Release the started Latch since another thread could be
                    // stuck waiting for it to start up.
                    startedLatch.countDown();
                    startedLatch.countDown();
                    localStartedLatch.countDown();
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.