org.apache.hadoop.hbase.ipc
Class SecureRpcEngine.Server
java.lang.Object
org.apache.hadoop.hbase.ipc.HBaseServer
org.apache.hadoop.hbase.ipc.SecureServer
org.apache.hadoop.hbase.ipc.SecureRpcEngine.Server
- All Implemented Interfaces:
- RpcServer
- Enclosing class:
- SecureRpcEngine
public static class SecureRpcEngine.Server
- extends SecureServer
An RPC Server.
Fields inherited from class org.apache.hadoop.hbase.ipc.HBaseServer |
bindAddress, callQueue, callQueueSize, conf, connectionList, CurCall, errorHandler, highPriorityLevel, maxIdleTime, maxQueueSize, numConnections, paramClass, port, priorityCallQueue, purgeTimeout, replicationQueue, responder, rpcMetrics, running, SERVER, socketSendBufferSize, tcpKeepAlive, tcpNoDelay, thresholdIdleConnections, TRACELOG |
Constructor Summary |
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. |
Methods inherited from class org.apache.hadoop.hbase.ipc.HBaseServer |
bind, channelRead, channelWrite, closeConnection, get, getCurrentCall, getListenerAddress, getQosLevel, getRemoteAddress, getRemoteIp, getResponseQueueSize, getRpcMetrics, join, openServer, setErrorHandler, setQosFunction, setSocketSendBufSize, setupResponse, start, updateCallQueueLenMetrics |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureRpcEngine.Server
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
- Construct an RPC server.
- Parameters:
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 logged
- Throws:
IOException
- e
createSecretManager
public AuthenticationTokenSecretManager createSecretManager()
startThreads
public void startThreads()
- Description copied from class:
HBaseServer
- Starts the service threads but does not allow requests to be responded yet.
Client will get
ServerNotRunningYetException
instead.
- Specified by:
startThreads
in interface RpcServer
- Overrides:
startThreads
in class HBaseServer
call
public org.apache.hadoop.io.Writable call(Class<? extends VersionedProtocol> protocol,
org.apache.hadoop.io.Writable param,
long receivedTime,
MonitoredRPCHandler status)
throws IOException
- Description copied from interface:
RpcServer
- Called for each call.
param
- writable parameterreceivedTime
- time
- Returns:
- Writable
- Throws:
IOException
- e
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.