@InterfaceAudience.LimitedPrivate(value="Configuration") public class NettyRpcServer extends RpcServer
RpcServer.BlockingServiceAndInterface, RpcServer.CallCleanup| Modifier and Type | Field and Description |
|---|---|
static String |
CHANNEL_WRITABLE_FATAL_WATERMARK_KEY
Fatal watermark for pending outbound bytes of a single netty channel.
|
static String |
CHANNEL_WRITABLE_HIGH_WATERMARK_KEY
High watermark for pending outbound bytes of a single netty channel.
|
static String |
CHANNEL_WRITABLE_LOW_WATERMARK_KEY
Low watermark for pending outbound bytes of a single netty channel.
|
static String |
HBASE_NETTY_ALLOCATOR_KEY
Name of property to change the byte buf allocator for the netty channels.
|
static org.slf4j.Logger |
LOG |
allowFallbackToSimpleAuth, AUDITLOG, AUTH_FAILED_FOR, AUTH_SUCCESSFUL_FOR, authManager, authTokenSecretMgr, bbAllocator, CALL_QUEUE_TOO_BIG_EXCEPTION, callQueueSizeInBytes, cellBlockBuilder, conf, CurCall, CURRENT_VERSION, DEFAULT_MAX_CALLQUEUE_LENGTH_PER_HANDLER, DEFAULT_MAX_CALLQUEUE_SIZE, DEFAULT_MAX_REQUEST_SIZE, DEFAULT_MIN_CLIENT_REQUEST_TIMEOUT, DEFAULT_TRACE_LOG_MAX_LENGTH, DEFAULT_WARN_RESPONSE_SIZE, DEFAULT_WARN_RESPONSE_TIME, errorHandler, FALLBACK_TO_INSECURE_CLIENT_AUTH, GSON, isSecurityEnabled, KEY_WORD_TRUNCATED, MAX_REQUEST_SIZE, maxQueueSizeInBytes, maxRequestSize, metrics, MIN_CLIENT_REQUEST_TIMEOUT, minClientRequestTimeout, MONITORED_RPC, NIO_BUFFER_LIMIT, saslProps, scheduler, secretManager, server, serverPrincipal, services, tcpKeepAlive, tcpNoDelay, TRACE_LOG_MAX_LENGTH, userProvider, WARN_RESPONSE_SIZE, WARN_RESPONSE_TIME, WARN_SCAN_RESPONSE_SIZE, WARN_SCAN_RESPONSE_TIME, warnResponseSize, warnResponseTime, warnScanResponseSize, warnScanResponseTime| Constructor and Description |
|---|
NettyRpcServer(Server server,
String name,
List<RpcServer.BlockingServiceAndInterface> services,
InetSocketAddress bindAddress,
org.apache.hadoop.conf.Configuration conf,
RpcScheduler scheduler,
boolean reservoirEnabled) |
| Modifier and Type | Method and Description |
|---|---|
Pair<org.apache.hbase.thirdparty.com.google.protobuf.Message,CellScanner> |
call(org.apache.hbase.thirdparty.com.google.protobuf.BlockingService service,
org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md,
org.apache.hbase.thirdparty.com.google.protobuf.Message param,
CellScanner cellScanner,
long receiveTime,
MonitoredRPCHandler status) |
Pair<org.apache.hbase.thirdparty.com.google.protobuf.Message,CellScanner> |
call(org.apache.hbase.thirdparty.com.google.protobuf.BlockingService service,
org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md,
org.apache.hbase.thirdparty.com.google.protobuf.Message param,
CellScanner cellScanner,
long receiveTime,
MonitoredRPCHandler status,
long startTime,
int timeout) |
protected org.apache.hadoop.hbase.ipc.NettyServerRpcConnection |
createNettyServerRpcConnection(org.apache.hbase.thirdparty.io.netty.channel.Channel channel) |
InetSocketAddress |
getListenerAddress() |
int |
getNumOpenConnections()
The number of open RPC conections
|
Pair<Long,Long> |
getTotalAndMaxNettyOutboundBytes() |
int |
getWriteBufferFatalThreshold() |
boolean |
isWritabilityBackpressureEnabled() |
void |
join() |
void |
onConfigurationChange(org.apache.hadoop.conf.Configuration newConf) |
void |
setSocketSendBufSize(int size) |
void |
start() |
void |
stop() |
addCallSize, authorize, call, channelRead, createSecretManager, getByteBuffAllocator, getCurrentCall, getErrorHandler, getMetrics, getRemoteAddress, getRemoteIp, getRequestUser, getRequestUserName, getScheduler, getSecretManager, getService, getServiceAndInterface, getServiceInterface, getServices, getStatus, initReconfigurable, isInRpcCallContext, isStarted, needAuthorization, refreshAuthManager, setCurrentCall, setErrorHandler, setNamedQueueRecorder, setRsRpcServices, setSecretManager, unsetCurrentCallpublic static final org.slf4j.Logger LOG
public static final String HBASE_NETTY_ALLOCATOR_KEY
"pooled" and "unpooled" may prefer direct memory depending on netty configuration, which is controlled by platform specific code and documented system properties.
"heap" will prefer heap arena allocations.
public static final String CHANNEL_WRITABLE_LOW_WATERMARK_KEY
public static final String CHANNEL_WRITABLE_HIGH_WATERMARK_KEY
Note: any requests already in the call queue will still be processed.
public static final String CHANNEL_WRITABLE_FATAL_WATERMARK_KEY
Note: must be higher than the high watermark, otherwise it's ignored.
public NettyRpcServer(Server server, String name, List<RpcServer.BlockingServiceAndInterface> services, InetSocketAddress bindAddress, org.apache.hadoop.conf.Configuration conf, RpcScheduler scheduler, boolean reservoirEnabled) throws IOException
IOExceptionpublic void onConfigurationChange(org.apache.hadoop.conf.Configuration newConf)
onConfigurationChange in interface ConfigurationObserveronConfigurationChange in class RpcServerpublic boolean isWritabilityBackpressureEnabled()
@InterfaceAudience.Private protected org.apache.hadoop.hbase.ipc.NettyServerRpcConnection createNettyServerRpcConnection(org.apache.hbase.thirdparty.io.netty.channel.Channel channel)
public void start()
public void stop()
public void join()
throws InterruptedException
InterruptedExceptionpublic InetSocketAddress getListenerAddress()
public void setSocketSendBufSize(int size)
public int getNumOpenConnections()
RpcServergetNumOpenConnections in class RpcServerpublic Pair<org.apache.hbase.thirdparty.com.google.protobuf.Message,CellScanner> call(org.apache.hbase.thirdparty.com.google.protobuf.BlockingService service, org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md, org.apache.hbase.thirdparty.com.google.protobuf.Message param, CellScanner cellScanner, long receiveTime, MonitoredRPCHandler status) throws IOException
IOExceptionpublic Pair<org.apache.hbase.thirdparty.com.google.protobuf.Message,CellScanner> call(org.apache.hbase.thirdparty.com.google.protobuf.BlockingService service, org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md, org.apache.hbase.thirdparty.com.google.protobuf.Message param, CellScanner cellScanner, long receiveTime, MonitoredRPCHandler status, long startTime, int timeout) throws IOException
IOExceptionpublic int getWriteBufferFatalThreshold()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.