@InterfaceAudience.Private @InterfaceStability.Evolving public class MasterFifoRpcScheduler extends FifoRpcScheduler
RpcScheduler.Context| 限定符和类型 | 字段和说明 |
|---|---|
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| 构造器和说明 |
|---|
MasterFifoRpcScheduler(org.apache.hadoop.conf.Configuration conf,
int callHandlerCount,
int rsReportHandlerCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
dispatch(CallRunner task)
Dispatches an RPC request asynchronously.
|
int |
getActiveRpcHandlerCount()
Retrieves the 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, getActiveReadRpcHandlerCount, 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 在类中 FifoRpcSchedulerpublic void stop()
RpcSchedulerstop 在类中 FifoRpcSchedulerpublic boolean dispatch(CallRunner task) throws IOException, InterruptedException
RpcSchedulerdispatch 在类中 FifoRpcSchedulertask - the request to be dispatchedIOExceptionInterruptedExceptionpublic int getGeneralQueueLength()
RpcSchedulerpublic int getActiveRpcHandlerCount()
RpcSchedulerpublic CallQueueInfo getCallQueueInfo()
RpcSchedulergetCallQueueInfo 在类中 FifoRpcSchedulerCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.