@InterfaceAudience.Private @InterfaceStability.Evolving public class MasterFifoRpcScheduler extends FifoRpcScheduler
RpcScheduler.Context| Modifier and Type | Field and Description |
|---|---|
static String |
MASTER_SERVER_REPORT_HANDLER_COUNT
Set RSReport requests handlers count when masters use MasterFifoRpcScheduler.
|
executor, handlerCount, maxQueueLength, queueSizeIPC_SERVER_MAX_CALLQUEUE_LENGTH, IPC_SERVER_PRIORITY_MAX_CALLQUEUE_LENGTH, IPC_SERVER_REPLICATION_MAX_CALLQUEUE_LENGTH| Constructor and Description |
|---|
MasterFifoRpcScheduler(org.apache.hadoop.conf.Configuration conf,
int callHandlerCount,
int rsReportHandlerCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatch(CallRunner task)
Dispatches an RPC request asynchronously.
|
int |
getActiveRpcHandlerCount()
Retrieves the total number of active handler.
|
CallQueueInfo |
getCallQueueInfo()
Get call queue information
|
int |
getGeneralQueueLength()
Retrieves length of the general queue for metrics.
|
void |
start()
Prepares for request serving.
|
void |
stop()
Stops serving new requests.
|
executeRpcCall, getActiveGeneralRpcHandlerCount, getActiveMetaPriorityRpcHandlerCount, getActivePriorityRpcHandlerCount, getActiveReadRpcHandlerCount, getActiveReplicationRpcHandlerCount, getActiveScanRpcHandlerCount, getActiveWriteRpcHandlerCount, getCallMethod, getMetaPriorityQueueLength, getNumGeneralCallsDropped, getNumLifoModeSwitches, getPriorityQueueLength, getReadQueueLength, getReplicationQueueLength, getScanQueueLength, getWriteQueueLength, init, updateMethodCountAndSizeByQueuepublic static final String MASTER_SERVER_REPORT_HANDLER_COUNT
public MasterFifoRpcScheduler(org.apache.hadoop.conf.Configuration conf,
int callHandlerCount,
int rsReportHandlerCount)
public void start()
RpcSchedulerstart in class FifoRpcSchedulerpublic void stop()
RpcSchedulerstop in class FifoRpcSchedulerpublic boolean dispatch(CallRunner task)
RpcSchedulerdispatch in class FifoRpcSchedulertask - the request to be dispatchedpublic int getGeneralQueueLength()
RpcSchedulergetGeneralQueueLength in class FifoRpcSchedulerpublic int getActiveRpcHandlerCount()
RpcSchedulergetActiveRpcHandlerCount in class FifoRpcSchedulerpublic CallQueueInfo getCallQueueInfo()
RpcSchedulergetCallQueueInfo in class FifoRpcSchedulerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.