类 ProxyConnection

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.apache.pulsar.common.protocol.PulsarDecoder
org.apache.pulsar.common.protocol.PulsarHandler
org.apache.pulsar.proxy.server.ProxyConnection
所有已实现的接口:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class ProxyConnection extends org.apache.pulsar.common.protocol.PulsarHandler
Handles incoming discovery request from client and sends appropriate response back to client.
  • 嵌套类概要

    从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • 字段概要

    从类继承的字段 org.apache.pulsar.common.protocol.PulsarHandler

    ctx, remoteAddress

    从类继承的字段 org.apache.pulsar.common.protocol.PulsarDecoder

    proxyMessage
  • 构造器概要

    构造器
    构造器
    说明
    ProxyConnection(ProxyService proxyService, io.netty.resolver.dns.DnsAddressResolverGroup dnsAddressResolverGroup)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    brokerConnected(DirectProxyHandler directProxyHandler, org.apache.pulsar.common.api.proto.CommandConnected connected)
     
    void
    channelActive(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    channelInactive(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
     
    void
    channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
     
    org.apache.pulsar.client.api.Authentication
     
    io.netty.handler.codec.haproxy.HAProxyMessage
     
    protected void
    handleAuthResponse(org.apache.pulsar.common.api.proto.CommandAuthResponse authResponse)
     
    protected void
    handleConnect(org.apache.pulsar.common.api.proto.CommandConnect connect)
     
    protected void
    handleGetSchema(org.apache.pulsar.common.api.proto.CommandGetSchema commandGetSchema)
     
    protected void
    handleGetTopicsOfNamespace(org.apache.pulsar.common.api.proto.CommandGetTopicsOfNamespace commandGetTopicsOfNamespace)
     
    protected void
    handleLookup(org.apache.pulsar.common.api.proto.CommandLookupTopic lookup)
    handles discovery request from client ands sends next active broker address.
    protected void
    handlePartitionMetadataRequest(org.apache.pulsar.common.api.proto.CommandPartitionedTopicMetadata partitionMetadata)
     
    boolean
     
    protected boolean
     

    从类继承的方法 org.apache.pulsar.common.protocol.PulsarHandler

    cancelKeepAliveTask, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceived, setRemoteEndpointProtocolVersion

    从类继承的方法 org.apache.pulsar.common.protocol.PulsarDecoder

    handleAck, handleAckResponse, handleActiveConsumerChange, handleAddPartitionToTxn, handleAddPartitionToTxnResponse, handleAddSubscriptionToTxn, handleAddSubscriptionToTxnResponse, handleAuthChallenge, handleCloseConsumer, handleCloseProducer, handleConnected, handleConsumerStats, handleConsumerStatsResponse, handleEndTxn, handleEndTxnOnPartition, handleEndTxnOnPartitionResponse, handleEndTxnOnSubscription, handleEndTxnOnSubscriptionResponse, handleEndTxnResponse, handleError, handleFlow, handleGetLastMessageId, handleGetLastMessageIdSuccess, handleGetOrCreateSchema, handleGetOrCreateSchemaResponse, handleGetSchemaResponse, handleGetTopicsOfNamespaceSuccess, handleLookupResponse, handleMessage, handleNewTxn, handleNewTxnResponse, handlePartitionResponse, handleProducer, handleProducerSuccess, handleReachedEndOfTopic, handleRedeliverUnacknowledged, handleSeek, handleSend, handleSendError, handleSendReceipt, handleSubscribe, handleSuccess, handleTcClientConnectRequest, handleTcClientConnectResponse, handleUnsubscribe, interceptCommand

    从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter

    channelReadComplete, userEventTriggered

    从类继承的方法 io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded, handlerRemoved, isSharable

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 io.netty.channel.ChannelHandler

    handlerAdded, handlerRemoved
  • 构造器详细资料

    • ProxyConnection

      public ProxyConnection(ProxyService proxyService, io.netty.resolver.dns.DnsAddressResolverGroup dnsAddressResolverGroup)
  • 方法详细资料

    • channelRegistered

      public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      channelRegistered 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelRegistered 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • channelUnregistered

      public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      channelUnregistered 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelUnregistered 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • channelActive

      public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      channelActive 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelActive 在类中 org.apache.pulsar.common.protocol.PulsarHandler
      抛出:
      Exception
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      channelInactive 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelInactive 在类中 org.apache.pulsar.common.protocol.PulsarHandler
      抛出:
      Exception
    • exceptionCaught

      public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
      指定者:
      exceptionCaught 在接口中 io.netty.channel.ChannelHandler
      指定者:
      exceptionCaught 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      exceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • channelWritabilityChanged

      public void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      指定者:
      channelWritabilityChanged 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelWritabilityChanged 在类中 io.netty.channel.ChannelInboundHandlerAdapter
      抛出:
      Exception
    • channelRead

      public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
      指定者:
      channelRead 在接口中 io.netty.channel.ChannelInboundHandler
      覆盖:
      channelRead 在类中 org.apache.pulsar.common.protocol.PulsarDecoder
      抛出:
      Exception
    • brokerConnected

      public void brokerConnected(DirectProxyHandler directProxyHandler, org.apache.pulsar.common.api.proto.CommandConnected connected)
    • handleConnect

      protected void handleConnect(org.apache.pulsar.common.api.proto.CommandConnect connect)
      覆盖:
      handleConnect 在类中 org.apache.pulsar.common.protocol.PulsarDecoder
    • handleAuthResponse

      protected void handleAuthResponse(org.apache.pulsar.common.api.proto.CommandAuthResponse authResponse)
      覆盖:
      handleAuthResponse 在类中 org.apache.pulsar.common.protocol.PulsarDecoder
    • handlePartitionMetadataRequest

      protected void handlePartitionMetadataRequest(org.apache.pulsar.common.api.proto.CommandPartitionedTopicMetadata partitionMetadata)
      覆盖:
      handlePartitionMetadataRequest 在类中 org.apache.pulsar.common.protocol.PulsarDecoder
    • handleGetTopicsOfNamespace

      protected void handleGetTopicsOfNamespace(org.apache.pulsar.common.api.proto.CommandGetTopicsOfNamespace commandGetTopicsOfNamespace)
      覆盖:
      handleGetTopicsOfNamespace 在类中 org.apache.pulsar.common.protocol.PulsarDecoder
    • handleGetSchema

      protected void handleGetSchema(org.apache.pulsar.common.api.proto.CommandGetSchema commandGetSchema)
      覆盖:
      handleGetSchema 在类中 org.apache.pulsar.common.protocol.PulsarDecoder
    • handleLookup

      protected void handleLookup(org.apache.pulsar.common.api.proto.CommandLookupTopic lookup)
      handles discovery request from client ands sends next active broker address.
      覆盖:
      handleLookup 在类中 org.apache.pulsar.common.protocol.PulsarDecoder
    • getClientAuthentication

      public org.apache.pulsar.client.api.Authentication getClientAuthentication()
    • isHandshakeCompleted

      protected boolean isHandshakeCompleted()
      指定者:
      isHandshakeCompleted 在类中 org.apache.pulsar.common.protocol.PulsarHandler
    • hasHAProxyMessage

      public boolean hasHAProxyMessage()
    • getHAProxyMessage

      public io.netty.handler.codec.haproxy.HAProxyMessage getHAProxyMessage()