Class ProxyClientCnx

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.client.impl.ClientCnx
org.apache.pulsar.proxy.server.ProxyClientCnx
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class ProxyClientCnx extends org.apache.pulsar.client.impl.ClientCnx
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.pulsar.client.impl.ClientCnx

    org.apache.pulsar.client.impl.ClientCnx.State

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields inherited from class org.apache.pulsar.client.impl.ClientCnx

    authentication, authenticationDataProvider, protocolVersion, proxyToTargetBrokerAddress, remoteHostName, state

    Fields inherited from class org.apache.pulsar.common.protocol.PulsarHandler

    ctx

    Fields inherited from class org.apache.pulsar.common.protocol.PulsarDecoder

    proxyMessage
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProxyClientCnx(org.apache.pulsar.client.impl.conf.ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup, String clientAuthRole, org.apache.pulsar.common.api.AuthData clientAuthData, String clientAuthMethod, int protocolVersion, boolean forwardClientAuthData, ProxyConnection proxyConnection)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    handleAuthChallenge(org.apache.pulsar.common.api.proto.CommandAuthChallenge authChallenge)
     
    protected io.netty.buffer.ByteBuf
     

    Methods inherited from class org.apache.pulsar.client.impl.ClientCnx

    channelActive, channelInactive, close, closeWithException, ctx, exceptionCaught, getAuthenticationDataProvider, getIdleState, getLastDisconnectedTimestamp, getMaxMessageSize, getPendingRequests, getPulsarClientException, handleAckResponse, handleActiveConsumerChange, handleAddPartitionToTxnResponse, handleAddSubscriptionToTxnResponse, handleCloseConsumer, handleCloseProducer, handleCommandWatchTopicListSuccess, handleCommandWatchTopicUpdate, handleConnected, handleEndTxnOnPartitionResponse, handleEndTxnOnSubscriptionResponse, handleEndTxnResponse, handleError, handleGetLastMessageIdSuccess, handleGetOrCreateSchemaResponse, handleGetSchemaResponse, handleGetTopicsOfNamespaceSuccess, handleLookupResponse, handleMessage, handleNewTxnResponse, handlePartitionResponse, handleProducerSuccess, handleReachedEndOfTopic, handleSendError, handleSendReceipt, handleSuccess, handleTcClientConnectResponse, idleCheck, isHandshakeCompleted, isKnownException, newAckForReceipt, newAckForReceiptWithFuture, newGetTopicsOfNamespace, newLookup, newWatchTopicList, newWatchTopicListClose, registerTransactionBufferHandler, sendGetLastMessageId, sendGetOrCreateSchema, sendGetRawSchema, sendGetSchema, userEventTriggered

    Methods inherited from class org.apache.pulsar.common.protocol.PulsarHandler

    cancelKeepAliveTask, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceived, sendPing, setRemoteEndpointProtocolVersion

    Methods inherited from class org.apache.pulsar.common.protocol.PulsarDecoder

    channelRead, handleAck, handleAddPartitionToTxn, handleAddSubscriptionToTxn, handleAuthResponse, handleCommandWatchTopicList, handleCommandWatchTopicListClose, handleConnect, handleConsumerStats, handleConsumerStatsResponse, handleEndTxn, handleEndTxnOnPartition, handleEndTxnOnSubscription, handleFlow, handleGetLastMessageId, handleGetOrCreateSchema, handleGetSchema, handleGetTopicsOfNamespace, handleLookup, handleNewTxn, handlePartitionMetadataRequest, handleProducer, handleRedeliverUnacknowledged, handleSeek, handleSend, handleSubscribe, handleTcClientConnectRequest, handleUnsubscribe, interceptCommand

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface io.netty.channel.ChannelHandler

    handlerAdded, handlerRemoved
  • Constructor Details

    • ProxyClientCnx

      public ProxyClientCnx(org.apache.pulsar.client.impl.conf.ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup, String clientAuthRole, org.apache.pulsar.common.api.AuthData clientAuthData, String clientAuthMethod, int protocolVersion, boolean forwardClientAuthData, ProxyConnection proxyConnection)
  • Method Details

    • newConnectCommand

      protected io.netty.buffer.ByteBuf newConnectCommand() throws Exception
      Overrides:
      newConnectCommand in class org.apache.pulsar.client.impl.ClientCnx
      Throws:
      Exception
    • handleAuthChallenge

      protected void handleAuthChallenge(org.apache.pulsar.common.api.proto.CommandAuthChallenge authChallenge)
      Overrides:
      handleAuthChallenge in class org.apache.pulsar.client.impl.ClientCnx