Package org.apache.pulsar.proxy.server
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.StateNested 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, stateFields inherited from class org.apache.pulsar.common.protocol.PulsarHandler
ctxFields inherited from class org.apache.pulsar.common.protocol.PulsarDecoder
proxyMessage -
Constructor Summary
ConstructorsConstructorDescriptionProxyClientCnx(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 TypeMethodDescriptionprotected voidhandleAuthChallenge(org.apache.pulsar.common.api.proto.CommandAuthChallenge authChallenge) protected io.netty.buffer.ByteBufMethods 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, userEventTriggeredMethods inherited from class org.apache.pulsar.common.protocol.PulsarHandler
cancelKeepAliveTask, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceived, sendPing, setRemoteEndpointProtocolVersionMethods 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, interceptCommandMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Overrides:
newConnectCommandin classorg.apache.pulsar.client.impl.ClientCnx- Throws:
Exception
-
handleAuthChallenge
protected void handleAuthChallenge(org.apache.pulsar.common.api.proto.CommandAuthChallenge authChallenge) - Overrides:
handleAuthChallengein classorg.apache.pulsar.client.impl.ClientCnx
-