@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"})
@InterfaceStability.Evolving
public class RWQueueRpcExecutor
extends RpcExecutor
RpcExecutor.Handler, RpcExecutor.QueueBalancer| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CALL_QUEUE_READ_SHARE_CONF_KEY |
static String |
CALL_QUEUE_SCAN_SHARE_CONF_KEY |
CALL_QUEUE_CODEL_DEFAULT_INTERVAL, CALL_QUEUE_CODEL_DEFAULT_LIFO_THRESHOLD, CALL_QUEUE_CODEL_DEFAULT_TARGET_DELAY, CALL_QUEUE_CODEL_INTERVAL, CALL_QUEUE_CODEL_LIFO_THRESHOLD, CALL_QUEUE_CODEL_TARGET_DELAY, CALL_QUEUE_HANDLER_FACTOR_CONF_KEY, CALL_QUEUE_TYPE_CODEL_CONF_VALUE, CALL_QUEUE_TYPE_CONF_DEFAULT, CALL_QUEUE_TYPE_CONF_KEY, CALL_QUEUE_TYPE_DEADLINE_CONF_VALUE, CALL_QUEUE_TYPE_FIFO_CONF_VALUE, currentQueueLimit, DEFAULT_CALL_QUEUE_SIZE_HARD_LIMIT, numCallQueues, QUEUE_MAX_CALL_DELAY_CONF_KEY, queues| 构造器和说明 |
|---|
RWQueueRpcExecutor(String name,
int handlerCount,
int maxQueueLength,
PriorityFunction priority,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected int |
computeNumCallQueues(int handlerCount,
float callQueuesHandlersFactor) |
boolean |
dispatch(CallRunner callTask)
Add the request to the executor queue
|
int |
getActiveHandlerCount() |
int |
getActiveReadHandlerCount() |
int |
getActiveScanHandlerCount() |
int |
getActiveWriteHandlerCount() |
int |
getReadQueueLength() |
int |
getScanQueueLength() |
int |
getWriteQueueLength() |
protected void |
startHandlers(int port) |
getBalancer, getCallQueueCountsSummary, getCallQueueSizeSummary, getHandler, getName, getNumGeneralCallsDropped, getNumLifoModeSwitches, getQueueLength, getQueues, initializeQueues, isCodelQueueType, isDeadlineQueueType, isFifoQueueType, onConfigurationChange, resizeQueues, start, startHandlers, stoppublic static final String CALL_QUEUE_READ_SHARE_CONF_KEY
public RWQueueRpcExecutor(String name, int handlerCount, int maxQueueLength, PriorityFunction priority, org.apache.hadoop.conf.Configuration conf, Abortable abortable)
protected int computeNumCallQueues(int handlerCount,
float callQueuesHandlersFactor)
computeNumCallQueues 在类中 RpcExecutorprotected void startHandlers(int port)
startHandlers 在类中 RpcExecutorpublic boolean dispatch(CallRunner callTask) throws InterruptedException
RpcExecutordispatch 在类中 RpcExecutorInterruptedExceptionpublic int getWriteQueueLength()
getWriteQueueLength 在类中 RpcExecutorpublic int getReadQueueLength()
getReadQueueLength 在类中 RpcExecutorpublic int getScanQueueLength()
getScanQueueLength 在类中 RpcExecutorpublic int getActiveHandlerCount()
getActiveHandlerCount 在类中 RpcExecutorpublic int getActiveWriteHandlerCount()
public int getActiveReadHandlerCount()
getActiveReadHandlerCount 在类中 RpcExecutorpublic int getActiveScanHandlerCount()
getActiveScanHandlerCount 在类中 RpcExecutorCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.