Package org.apache.hadoop.ipc
Class RPC.Server
java.lang.Object
org.apache.hadoop.ipc.Server
org.apache.hadoop.ipc.RPC.Server
- Direct Known Subclasses:
ProtobufRpcEngine2.Server,WritableRpcEngine.Server
- Enclosing class:
- RPC
An RPC Server.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.ipc.Server
Server.AuthProtocol, Server.Call, Server.Connection -
Field Summary
Fields inherited from class org.apache.hadoop.ipc.Server
AUDITLOG, LOG, rpcDetailedMetrics, rpcMetrics -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServer(String bindAddress, int port, Class<? extends Writable> paramClass, int handlerCount, int numReaders, int queueSizePerHandler, Configuration conf, String serverName, SecretManager<? extends TokenIdentifier> secretManager, String portRangeConfig) -
Method Summary
Modifier and TypeMethodDescriptionaddProtocol(RPC.RpcKind rpcKind, Class<?> protocolClass, Object protocolImpl) Add a protocol to the existing server.call(RPC.RpcKind rpcKind, String protocol, Writable rpcRequest, long receiveTime) Called for each call.Methods inherited from class org.apache.hadoop.ipc.Server
addAuxiliaryListener, addSuppressedLoggingExceptions, addTerseExceptions, bind, bind, call, get, getAuxiliaryListenerAddresses, getAuxiliaryPortEstablishedQOP, getCallId, getCallQueueLen, getCallRetryCount, getClientId, getCurCall, getListenerAddress, getLogSlowRPCThresholdTime, getMaxIdleTime, getMaxQueueSize, getNumDroppedConnections, getNumInProcessHandler, getNumOpenConnections, getNumOpenConnectionsPerUser, getNumReaders, getPort, getPriorityLevel, getProtocol, getPurgeIntervalNanos, getRemoteAddress, getRemoteIp, getRemotePort, getRemoteUser, getRpcDetailedMetrics, getRpcInvoker, getRpcMetrics, getRpcRequestWrapper, getServerName, getServerRpcInvoker, getServiceAuthorizationManager, getTotalRequests, getTotalRequestsPerSecond, isClientBackoffEnabled, isLogSlowRPC, isRpcInvocation, isServerFailOverEnabled, isServerFailOverEnabledByQueue, join, queueCall, refreshCallQueue, refreshServiceAcl, refreshServiceAclWithLoadedConfiguration, registerProtocolEngine, setAlignmentContext, setClientBackoffEnabled, setLogSlowRPC, setLogSlowRPCThresholdTime, setSocketSendBufSize, setTracer, start, stop
-
Constructor Details
-
Server
protected Server(String bindAddress, int port, Class<? extends Writable> paramClass, int handlerCount, int numReaders, int queueSizePerHandler, Configuration conf, String serverName, SecretManager<? extends TokenIdentifier> secretManager, String portRangeConfig) throws IOException - Throws:
IOException
-
-
Method Details
-
addProtocol
Add a protocol to the existing server.- Parameters:
rpcKind- - input rpcKindprotocolClass- - the protocol classprotocolImpl- - the impl of the protocol that will be called- Returns:
- the server (for convenience)
-
call
public Writable call(RPC.RpcKind rpcKind, String protocol, Writable rpcRequest, long receiveTime) throws Exception Description copied from class:ServerCalled for each call.
-