@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, queueSize
IPC_SERVER_MAX_CALLQUEUE_LENGTH, IPC_SERVER_PRIORITY_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 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, updateMethodCountAndSizeByQueue
public static final String MASTER_SERVER_REPORT_HANDLER_COUNT
public MasterFifoRpcScheduler(org.apache.hadoop.conf.Configuration conf, int callHandlerCount, int rsReportHandlerCount)
public void start()
RpcScheduler
start
in class FifoRpcScheduler
public void stop()
RpcScheduler
stop
in class FifoRpcScheduler
public boolean dispatch(CallRunner task) throws IOException, InterruptedException
RpcScheduler
dispatch
in class FifoRpcScheduler
task
- the request to be dispatchedIOException
InterruptedException
public int getGeneralQueueLength()
RpcScheduler
getGeneralQueueLength
in class FifoRpcScheduler
public int getActiveRpcHandlerCount()
RpcScheduler
getActiveRpcHandlerCount
in class FifoRpcScheduler
public CallQueueInfo getCallQueueInfo()
RpcScheduler
getCallQueueInfo
in class FifoRpcScheduler
Copyright © 2007–2019 Cloudera. All rights reserved.