Examples of ShutdownInfo


Examples of org.apache.activemq.command.ShutdownInfo

                    remoteBridgeStarted.set(false);
                    final CountDownLatch sendShutdown = new CountDownLatch(1);
                    ASYNC_TASKS.execute(new Runnable() {
                        public void run() {
                            try {
                                localBroker.oneway(new ShutdownInfo());
                                sendShutdown.countDown();
                                remoteBroker.oneway(new ShutdownInfo());
                            } catch (Throwable e) {
                                LOG.debug("Caught exception sending shutdown", e);
                            } finally {
                                sendShutdown.countDown();
                            }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

    }

    protected void onStompDisconnect(StompFrame command) throws ProtocolException {
        checkConnected();
        sendToActiveMQ(connectionInfo.createRemoveCommand(), createResponseHandler(command));
        sendToActiveMQ(new ShutdownInfo(), createResponseHandler(command));
        connected.set(false);
    }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

    }

    protected void onStompDisconnect(StompFrame command) throws ProtocolException {
        if (connected.get()) {
            sendToActiveMQ(connectionInfo.createRemoveCommand(), createResponseHandler(command));
            sendToActiveMQ(new ShutdownInfo(), createResponseHandler(command));
            connected.set(false);
        }
    }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

public class ShutdownInfoTest extends BaseCommandTestSupport {

    public static final ShutdownInfoTest SINGLETON = new ShutdownInfoTest();

    public Object createObject() throws Exception {
        ShutdownInfo info = new ShutdownInfo();
        populateObject(info);
        return info;
    }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

        return info;
    }

    protected void populateObject(Object object) throws Exception {
        super.populateObject(object);
        ShutdownInfo info = (ShutdownInfo)object;

    }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo


    public static final ShutdownInfoTest SINGLETON = new ShutdownInfoTest();

    public Object createObject() throws Exception {
        ShutdownInfo info = new ShutdownInfo();
        populateObject(info);
        return info;
    }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

        return info;
    }

    protected void populateObject(Object object) throws Exception {
        super.populateObject(object);
        ShutdownInfo info = (ShutdownInfo) object;

    }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

            // let the peer know that we are disconnecting after attempting
            // to cleanly shutdown the async tasks so that this is the last
            // command it see's.
            try {
                peer.transportListener.onCommand(new ShutdownInfo());
            } catch (Exception ignore) {
            }

            // shutdown task runner factory
            if (taskRunnerFactory != null) {
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

        } catch(Exception e) {
            fail("Should not have failed to remove this unknown connection");
        }

        this.transport.oneway(new MessageAck());
        this.transport.oneway(new ShutdownInfo());
    }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo


    public static final ShutdownInfoTest SINGLETON = new ShutdownInfoTest();

    public Object createObject() throws Exception {
        ShutdownInfo info = new ShutdownInfo();
        populateObject(info);
        return info;
    }
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.