类 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) -
方法概要
修饰符和类型方法说明voidbrokerConnected(DirectProxyHandler directProxyHandler, org.apache.pulsar.common.api.proto.CommandConnected connected) voidchannelActive(io.netty.channel.ChannelHandlerContext ctx) voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidchannelRegistered(io.netty.channel.ChannelHandlerContext ctx) voidchannelUnregistered(io.netty.channel.ChannelHandlerContext ctx) voidchannelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) org.apache.pulsar.client.api.Authenticationio.netty.handler.codec.haproxy.HAProxyMessageprotected voidhandleAuthResponse(org.apache.pulsar.common.api.proto.CommandAuthResponse authResponse) protected voidhandleConnect(org.apache.pulsar.common.api.proto.CommandConnect connect) protected voidhandleGetSchema(org.apache.pulsar.common.api.proto.CommandGetSchema commandGetSchema) protected voidhandleGetTopicsOfNamespace(org.apache.pulsar.common.api.proto.CommandGetTopicsOfNamespace commandGetTopicsOfNamespace) protected voidhandleLookup(org.apache.pulsar.common.api.proto.CommandLookupTopic lookup) handles discovery request from client ands sends next active broker address.protected voidhandlePartitionMetadataRequest(org.apache.pulsar.common.api.proto.CommandPartitionedTopicMetadata partitionMetadata) booleanprotected 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
- 指定者:
channelRegistered在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelRegistered在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
channelUnregistered
- 指定者:
channelUnregistered在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelUnregistered在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
channelActive
- 指定者:
channelActive在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelActive在类中org.apache.pulsar.common.protocol.PulsarHandler- 抛出:
Exception
-
channelInactive
- 指定者:
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
- 指定者:
channelWritabilityChanged在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelWritabilityChanged在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
channelRead
- 指定者:
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()
-