public static class ProtobufRpcEngine.Server extends ProtobufRpcEngine2.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 |
|---|---|---|
static ProtobufRpcEngineCallback |
registerForDeferredResponse() |
getServerRpcInvoker, registerForDeferredResponse2addProtocol, 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 runverbose - whether each call should be loggedportRangeConfig - 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 responsessecretManager - input secretManager.queueSizePerHandler - input queueSizePerHandler.numReaders - input numReaders.java.io.IOException - raised on errors performing I/O.@Unstable public static ProtobufRpcEngineCallback registerForDeferredResponse()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.