Examples of DisconnectMessage


Examples of org.hornetq.core.protocol.core.impl.wireformat.DisconnectMessage

      {
         final byte type = packet.getType();

         if (type == PacketImpl.DISCONNECT)
         {
            final DisconnectMessage msg = (DisconnectMessage)packet;

            SimpleString nodeID = msg.getNodeID();

            if (ClientSessionFactoryImpl.log.isTraceEnabled())
            {
               ClientSessionFactoryImpl.log.trace("Disconnect being called on client:" + msg +
                                                  " server locator = " +
                                                  serverLocator +
                                                  " notifying node " +
                                                  nodeID +
                                                  " as down", new Exception("trace"));
            }

            if (nodeID != null)
            {
               serverLocator.notifyNodeDown(System.currentTimeMillis(), msg.getNodeID().toString());
            }

            closeExecutor.execute(new Runnable()
            {
               // Must be executed on new thread since cannot block the netty thread for a long time and fail can
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.wireformat.DisconnectMessage

      {
         final byte type = packet.getType();

         if (type == PacketImpl.DISCONNECT)
         {
            final DisconnectMessage msg = (DisconnectMessage) packet;

            SimpleString nodeID = msg.getNodeID();

            if (HornetQClientLogger.LOGGER.isTraceEnabled())
            {
               HornetQClientLogger.LOGGER.trace("Disconnect being called on client:" + msg +
                                                   " server locator = " +
                                                   serverLocator +
                                                   " notifying node " +
                                                   nodeID +
                                                   " as down", new Exception("trace"));
            }

            if (nodeID != null)
            {
               serverLocator.notifyNodeDown(System.currentTimeMillis(), msg.getNodeID().toString());
            }

            closeExecutor.execute(new CloseRunnable(conn));
         }
         else if (type == PacketImpl.CLUSTER_TOPOLOGY)
View Full Code Here

Examples of org.xulfactory.gliese.message.DisconnectMessage

      } catch (SSHException se) {
        close();
        throw se;
      }
      if (m.getID() == DisconnectMessage.ID) {
        DisconnectMessage msg = (DisconnectMessage)m;
        GlieseLogger.LOGGER.info("Disconnect message received: " + msg);
        close();
        throw new SSHException(String.format(
          "%s (reason code=%d)", msg.getMessage(),
          msg.getReasonCode()));
      } else if (m.getID() == DebugMessage.ID) {
        DebugMessage msg = (DebugMessage)m;
        if (msg.isAlwaysDisplay()) {
          GlieseLogger.LOGGER.info("Debug message: " + msg.getMessage());
        } else {
          GlieseLogger.LOGGER.debug("Debug message: " + msg.getMessage());
        }
      } else {
        break;
      }
    } while (true);
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.