ProtobufRpcEngine.Serverpublic static class ProtobufRpcEngine2.Server extends RPC.Server
Server.AuthProtocol, Server.Call, Server.ConnectionAUDITLOG, LOG, rpcDetailedMetrics, rpcMetrics| Constructor | Description |
|---|---|
Server(java.lang.Class<?> protocolClass,
java.lang.Object protocolImpl,
Configuration conf,
java.lang.String bindAddress,
int port,
int numHandlers,
int numReaders,
int queueSizePerHandler,
boolean verbose,
SecretManager<? extends TokenIdentifier> secretManager,
java.lang.String portRangeConfig,
AlignmentContext alignmentContext) |
Construct an RPC server.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected org.apache.hadoop.ipc.RPC.RpcInvoker |
getServerRpcInvoker(RPC.RpcKind rpcKind) |
|
static ProtobufRpcEngineCallback2 |
registerForDeferredResponse2() |
addProtocol, calladdAuxiliaryListener, 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, getServiceAuthorizationManager, getTotalRequests, getTotalRequestsPerSecond, isClientBackoffEnabled, isLogSlowRPC, isRpcInvocation, isServerFailOverEnabled, isServerFailOverEnabledByQueue, join, queueCall, refreshCallQueue, refreshServiceAcl, refreshServiceAclWithLoadedConfiguration, registerProtocolEngine, setAlignmentContext, setClientBackoffEnabled, setLogSlowRPC, setLogSlowRPCThresholdTime, setSocketSendBufSize, setTracer, start, stoppublic Server(java.lang.Class<?> protocolClass,
java.lang.Object protocolImpl,
Configuration conf,
java.lang.String bindAddress,
int port,
int numHandlers,
int numReaders,
int queueSizePerHandler,
boolean verbose,
SecretManager<? extends TokenIdentifier> secretManager,
java.lang.String portRangeConfig,
AlignmentContext alignmentContext)
throws java.io.IOException
protocolClass - the class of protocolprotocolImpl - the protocolImpl 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 runnumReaders - number of read threadsqueueSizePerHandler - the size of the queue contained
in each Handlerverbose - whether each call should be loggedsecretManager - the server-side secret manager for each token typeportRangeConfig - A config parameter that can be used to restrict
the range of ports used when port is 0 (an ephemeral port)alignmentContext - provides server state info on client responsesjava.io.IOException - raised on errors performing I/O.@Unstable public static ProtobufRpcEngineCallback2 registerForDeferredResponse2()
protected org.apache.hadoop.ipc.RPC.RpcInvoker getServerRpcInvoker(RPC.RpcKind rpcKind)
getServerRpcInvoker in class ServerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.