Class HornetQClientProtocolManager

  • All Implemented Interfaces:
    org.apache.activemq.artemis.spi.core.remoting.ClientProtocolManager

    public class HornetQClientProtocolManager
    extends org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager
    • Field Summary

      • Fields inherited from class org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager

        connection, topologyResponseHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkForFailover​(java.lang.String liveNodeID)  
      protected org.apache.activemq.artemis.core.protocol.core.Packet newCreateSessionPacket​(int clientVersion, java.lang.String name, java.lang.String username, java.lang.String password, boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, int minLargeMessageSize, int confirmationWindowSize, long sessionChannelID, java.lang.String clientID)  
      protected org.apache.activemq.artemis.spi.core.remoting.SessionContext newSessionContext​(java.lang.String name, int confirmationWindowSize, org.apache.activemq.artemis.core.protocol.core.Channel sessionChannel, org.apache.activemq.artemis.core.protocol.core.impl.wireformat.CreateSessionResponseMessage response)  
      protected void sendHandshake​(org.apache.activemq.artemis.spi.core.remoting.Connection transportConnection)  
      void sendSubscribeTopology​(boolean isServer)  
      protected org.apache.activemq.artemis.core.protocol.core.impl.wireformat.ClusterTopologyChangeMessage updateTransportConfiguration​(org.apache.activemq.artemis.core.protocol.core.impl.wireformat.ClusterTopologyChangeMessage topMessage)  
      • Methods inherited from class org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager

        addChannelHandlers, cleanupBeforeFailover, connect, createPacketDecoder, createSessionContext, createSessionContext, getChannel0, getChannel1, getCurrentConnection, getName, getSessionFactory, isAlive, lockSessionCreation, ping, setExecutor, setSessionFactory, stop, waitOnLatch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HornetQClientProtocolManager

        public HornetQClientProtocolManager()
    • Method Detail

      • sendHandshake

        protected void sendHandshake​(org.apache.activemq.artemis.spi.core.remoting.Connection transportConnection)
        Overrides:
        sendHandshake in class org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager
      • newSessionContext

        protected org.apache.activemq.artemis.spi.core.remoting.SessionContext newSessionContext​(java.lang.String name,
                                                                                                 int confirmationWindowSize,
                                                                                                 org.apache.activemq.artemis.core.protocol.core.Channel sessionChannel,
                                                                                                 org.apache.activemq.artemis.core.protocol.core.impl.wireformat.CreateSessionResponseMessage response)
        Overrides:
        newSessionContext in class org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager
      • newCreateSessionPacket

        protected org.apache.activemq.artemis.core.protocol.core.Packet newCreateSessionPacket​(int clientVersion,
                                                                                               java.lang.String name,
                                                                                               java.lang.String username,
                                                                                               java.lang.String password,
                                                                                               boolean xa,
                                                                                               boolean autoCommitSends,
                                                                                               boolean autoCommitAcks,
                                                                                               boolean preAcknowledge,
                                                                                               int minLargeMessageSize,
                                                                                               int confirmationWindowSize,
                                                                                               long sessionChannelID,
                                                                                               java.lang.String clientID)
        Overrides:
        newCreateSessionPacket in class org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager
      • sendSubscribeTopology

        public void sendSubscribeTopology​(boolean isServer)
        Specified by:
        sendSubscribeTopology in interface org.apache.activemq.artemis.spi.core.remoting.ClientProtocolManager
        Overrides:
        sendSubscribeTopology in class org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager
      • checkForFailover

        public boolean checkForFailover​(java.lang.String liveNodeID)
                                 throws org.apache.activemq.artemis.api.core.ActiveMQException
        Specified by:
        checkForFailover in interface org.apache.activemq.artemis.spi.core.remoting.ClientProtocolManager
        Overrides:
        checkForFailover in class org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager
        Throws:
        org.apache.activemq.artemis.api.core.ActiveMQException
      • updateTransportConfiguration

        protected org.apache.activemq.artemis.core.protocol.core.impl.wireformat.ClusterTopologyChangeMessage updateTransportConfiguration​(org.apache.activemq.artemis.core.protocol.core.impl.wireformat.ClusterTopologyChangeMessage topMessage)
        Overrides:
        updateTransportConfiguration in class org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager