Package org.apache.drill.exec.rpc
Interface RemoteConnection
- All Superinterfaces:
AutoCloseable
,ConnectionThrottle
- All Known Subinterfaces:
ClientConnection
,ServerConnection<S>
- All Known Implementing Classes:
AbstractClientConnection
,AbstractRemoteConnection
,AbstractServerConnection
,ControlConnection
,DataClientConnection
,DataServerConnection
,UserClient.UserToBitConnection
,UserServer.BitToUserConnection
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
blockOnNotWritable
(RpcOutcomeListener<?> listener) void
void
close()
createNewRpcListener
(RpcOutcomeListener<V> handler, Class<V> clazz) <V> RpcOutcome<V>
getAndRemoveRpcOutcome
(int rpcType, int coordinationId, Class<V> clazz) io.netty.channel.Channel
getName()
boolean
boolean
isActive()
void
recordRemoteFailure
(int coordinationId, UserBitShared.DrillPBError failure) Methods inherited from interface org.apache.drill.exec.rpc.ConnectionThrottle
setAutoRead
-
Method Details
-
inEventLoop
boolean inEventLoop() -
getName
String getName() -
getAllocator
BufferAllocator getAllocator() -
getChannel
io.netty.channel.Channel getChannel() -
blockOnNotWritable
-
isActive
boolean isActive() -
getAndRemoveRpcOutcome
-
createNewRpcListener
<V> ChannelListenerWithCoordinationId createNewRpcListener(RpcOutcomeListener<V> handler, Class<V> clazz) -
channelClosed
-
getRemoteAddress
SocketAddress getRemoteAddress() -
addSecurityHandlers
void addSecurityHandlers() -
close
void close()- Specified by:
close
in interfaceAutoCloseable
-