Examples of ShutdownInfo


Examples of org.apache.activemq.command.ShutdownInfo

    public void stop() throws Exception {
        shuttingDown = true;
        if (transport != null) {
            try {
                transport.oneway(new ShutdownInfo());
            }
            catch (IOException e) {
            }
            ServiceSupport.dispose(transport);
        }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

  }

  protected void onStompDisconnect(StompFrame command) throws ProtocolException {
    checkConnected();
    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 {
        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

                    if (isConnectionInfoSentToBroker) {
                      // If we announced ourselfs to the broker.. Try to let the broker
                      // know that the connection is being shutdown.
                        syncSendPacket(info.createRemoveCommand(), closeTimeout);
                        asyncSendPacket(new ShutdownInfo());
                    }

                    ServiceSupport.dispose(this.transport);

                    started.set(false);
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

                localBroker.request(connectionInfo.createRemoveCommand());
                remoteBroker.request(connectionInfo.createRemoveCommand());
            }
            localBroker.setTransportListener(null);
            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

Examples of org.apache.activemq.command.ShutdownInfo

            // if (connectionInfo!=null){
            // localBroker.request(connectionInfo.createRemoveCommand());
            // }
            // localBroker.setTransportListener(null);
            // remoteBroker.setTransportListener(null);
            remoteBroker.oneway(new ShutdownInfo());
            localBroker.oneway(new ShutdownInfo());
        }
        catch (IOException e) {
            log.debug("Caught exception stopping", e);
        }
        finally {
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

        try {
           if( disposed.get() ) {
                if( dispatchStopped.compareAndSet(false, true)) {                                                            
                    if( transportException.get()==null ) {
                        try {
                            dispatch(new ShutdownInfo());
                        } catch (Throwable ignore) {
                        }
                    }
                    dispatchStoppedLatch.countDown();
                }
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

                        // the broker
                        // know that the connection is being shutdown.
                        RemoveInfo removeCommand = info.createRemoveCommand();
                        removeCommand.setLastDeliveredSequenceId(lastDeliveredSequenceId);
                        doSyncSendPacket(info.createRemoveCommand(), closeTimeout);
                        doAsyncSendPacket(new ShutdownInfo());
                    }

                    ServiceSupport.dispose(this.transport);

                    started.set(false);
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

                        // the broker
                        // know that the connection is being shutdown.
                        RemoveInfo removeCommand = info.createRemoveCommand();
                        removeCommand.setLastDeliveredSequenceId(lastDeliveredSequenceId);
                        doSyncSendPacket(info.createRemoveCommand(), closeTimeout);
                        doAsyncSendPacket(new ShutdownInfo());
                    }

                    ServiceSupport.dispose(this.transport);

                    started.set(false);
View Full Code Here

Examples of org.apache.activemq.command.ShutdownInfo

        try {
            if (stopping.get()) {
                if (dispatchStopped.compareAndSet(false, true)) {
                    if (transportException.get() == null) {
                        try {
                            dispatch(new ShutdownInfo());
                        } catch (Throwable ignore) {
                        }
                    }
                    dispatchStoppedLatch.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.