Package org.apache.drill.exec.rpc
Interface ServerConnection<S extends ServerConnection<S>>
- All Superinterfaces:
AutoCloseable
,ConnectionThrottle
,EncryptionContext
,RemoteConnection
- All Known Implementing Classes:
AbstractServerConnection
,ControlConnection
,DataServerConnection
,UserServer.BitToUserConnection
public interface ServerConnection<S extends ServerConnection<S>>
extends RemoteConnection, EncryptionContext
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeHandlerTo
(RequestHandler<S> handler) void
void
void
initSaslServer
(String mechanismName) Methods inherited from interface org.apache.drill.exec.rpc.ConnectionThrottle
setAutoRead
Methods inherited from interface org.apache.drill.exec.rpc.EncryptionContext
getEncryptionCtxtString, getMaxWrappedSize, getWrapSizeLimit, isEncryptionEnabled, setEncryption, setMaxWrappedSize, setWrapSizeLimit
Methods inherited from interface org.apache.drill.exec.rpc.RemoteConnection
addSecurityHandlers, blockOnNotWritable, channelClosed, close, createNewRpcListener, getAllocator, getAndRemoveRpcOutcome, getChannel, getName, getRemoteAddress, inEventLoop, isActive, recordRemoteFailure
-
Method Details
-
initSaslServer
- Throws:
IOException
-
getSaslServer
SaslServer getSaslServer() -
finalizeSaslSession
- Throws:
IOException
-
getCurrentHandler
RequestHandler<S> getCurrentHandler() -
changeHandlerTo
-
disposeSaslServer
void disposeSaslServer()
-