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 TypeMethodDescriptionvoidbooleanblockOnNotWritable(RpcOutcomeListener<?> listener) voidvoidclose()createNewRpcListener(RpcOutcomeListener<V> handler, Class<V> clazz) <V> RpcOutcome<V> getAndRemoveRpcOutcome(int rpcType, int coordinationId, Class<V> clazz) io.netty.channel.ChannelgetName()booleanbooleanisActive()voidrecordRemoteFailure(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:
closein interfaceAutoCloseable
-