public class FastPathBalancedQueueRpcExecutor extends BalancedQueueRpcExecutor
RpcExecutor.Handler, RpcExecutor.QueueBalancerCALL_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| Constructor and Description |
|---|
FastPathBalancedQueueRpcExecutor(java.lang.String name,
int handlerCount,
int maxQueueLength,
PriorityFunction priority,
Configuration conf,
Abortable abortable) |
FastPathBalancedQueueRpcExecutor(java.lang.String name,
int handlerCount,
java.lang.String callQueueType,
int maxQueueLength,
PriorityFunction priority,
Configuration conf,
Abortable abortable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatch(CallRunner callTask)
Add the request to the executor queue
|
protected RpcExecutor.Handler |
getHandler(java.lang.String name,
double handlerFailureThreshhold,
java.util.concurrent.BlockingQueue<CallRunner> q,
java.util.concurrent.atomic.AtomicInteger activeHandlerCount)
Override if providing alternate Handler implementation.
|
computeNumCallQueues, getActiveHandlerCount, getActiveReadHandlerCount, getActiveScanHandlerCount, getActiveWriteHandlerCount, getBalancer, getCallQueueCountsSummary, getCallQueueSizeSummary, getName, getNumGeneralCallsDropped, getNumLifoModeSwitches, getQueueLength, getQueues, getReadQueueLength, getScanQueueLength, getWriteQueueLength, initializeQueues, isCodelQueueType, isDeadlineQueueType, isFifoQueueType, onConfigurationChange, resizeQueues, start, startHandlers, startHandlers, stoppublic FastPathBalancedQueueRpcExecutor(java.lang.String name,
int handlerCount,
int maxQueueLength,
PriorityFunction priority,
Configuration conf,
Abortable abortable)
public FastPathBalancedQueueRpcExecutor(java.lang.String name,
int handlerCount,
java.lang.String callQueueType,
int maxQueueLength,
PriorityFunction priority,
Configuration conf,
Abortable abortable)
protected RpcExecutor.Handler getHandler(java.lang.String name, double handlerFailureThreshhold, java.util.concurrent.BlockingQueue<CallRunner> q, java.util.concurrent.atomic.AtomicInteger activeHandlerCount)
RpcExecutorgetHandler in class RpcExecutorpublic boolean dispatch(CallRunner callTask) throws java.lang.InterruptedException
RpcExecutordispatch in class BalancedQueueRpcExecutorjava.lang.InterruptedException