public static class SecureRpcEngine.Server extends SecureServer
SecureServer.SecureCall, SecureServer.SecureConnection
HBaseServer.Call, HBaseServer.Connection, HBaseServer.Responder
authManager, CURRENT_VERSION, HEADER, INSECURE_VERSIONS, LOG, secretManager
bindAddress, callQueue, callQueueSize, conf, connectionList, CurCall, errorHandler, highPriorityLevel, maxIdleTime, numConnections, paramClass, port, priorityCallQueue, purgeTimeout, replicationQueue, responder, rpcMetrics, running, SERVER, socketSendBufferSize, tcpKeepAlive, tcpNoDelay, thresholdIdleConnections, TRACELOG
Constructor and Description |
---|
SecureRpcEngine.Server(Object instance,
Class<?>[] ifaces,
org.apache.hadoop.conf.Configuration conf,
String bindAddress,
int port,
int numHandlers,
int metaHandlerCount,
boolean verbose,
int highPriorityLevel)
Construct an RPC server.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.Writable |
call(Class<? extends VersionedProtocol> protocol,
org.apache.hadoop.io.Writable param,
long receivedTime,
MonitoredRPCHandler status)
Called for each call.
|
AuthenticationTokenSecretManager |
createSecretManager() |
void |
startThreads()
Starts the service threads but does not allow requests to be responded yet.
|
authorize, getConnection, getSecretManager, setSecretManager, stop
bind, channelRead, channelWrite, closeConnection, get, getCurrentCall, getListenerAddress, getQosLevel, getRemoteAddress, getRemoteIp, getResponseQueueSize, getRpcMetrics, join, openServer, setErrorHandler, setQosFunction, setSocketSendBufSize, start, updateCallQueueLenMetrics
public SecureRpcEngine.Server(Object instance, Class<?>[] ifaces, org.apache.hadoop.conf.Configuration conf, String bindAddress, int port, int numHandlers, int metaHandlerCount, boolean verbose, int highPriorityLevel) throws IOException
instance
- the instance whose methods will be calledconf
- the configuration to usebindAddress
- the address to bind on to listen for connectionport
- the port to listen for connections onnumHandlers
- the number of method handler threads to runverbose
- whether each call should be loggedIOException
- epublic AuthenticationTokenSecretManager createSecretManager()
public void startThreads()
HBaseServer
ServerNotRunningYetException
instead.startThreads
in interface RpcServer
startThreads
in class HBaseServer
public org.apache.hadoop.io.Writable call(Class<? extends VersionedProtocol> protocol, org.apache.hadoop.io.Writable param, long receivedTime, MonitoredRPCHandler status) throws IOException
RpcServer
param
- writable parameterreceivedTime
- timeIOException
- eCopyright © 2014 The Apache Software Foundation. All Rights Reserved.