ProtobufRpcEngine2.Server, WritableRpcEngine.Serverpublic abstract static class RPC.Server extends Server
Server.AuthProtocol, Server.Call, Server.ConnectionAUDITLOG, LOG, rpcDetailedMetrics, rpcMetrics| Modifier | Constructor | Description |
|---|---|---|
protected |
Server(java.lang.String bindAddress,
int port,
java.lang.Class<? extends Writable> paramClass,
int handlerCount,
int numReaders,
int queueSizePerHandler,
Configuration conf,
java.lang.String serverName,
SecretManager<? extends TokenIdentifier> secretManager,
java.lang.String portRangeConfig) |
| Modifier and Type | Method | Description |
|---|---|---|
RPC.Server |
addProtocol(RPC.RpcKind rpcKind,
java.lang.Class<?> protocolClass,
java.lang.Object protocolImpl) |
Add a protocol to the existing server.
|
Writable |
call(RPC.RpcKind rpcKind,
java.lang.String protocol,
Writable rpcRequest,
long receiveTime) |
Called for each call.
|
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, stopprotected Server(java.lang.String bindAddress,
int port,
java.lang.Class<? extends Writable> paramClass,
int handlerCount,
int numReaders,
int queueSizePerHandler,
Configuration conf,
java.lang.String serverName,
SecretManager<? extends TokenIdentifier> secretManager,
java.lang.String portRangeConfig)
throws java.io.IOException
java.io.IOExceptionpublic RPC.Server addProtocol(RPC.RpcKind rpcKind, java.lang.Class<?> protocolClass, java.lang.Object protocolImpl)
rpcKind - - input rpcKindprotocolClass - - the protocol classprotocolImpl - - the impl of the protocol that will be calledpublic Writable call(RPC.RpcKind rpcKind, java.lang.String protocol, Writable rpcRequest, long receiveTime) throws java.lang.Exception
ServerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.