@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public class RWQueueRpcExecutor extends RpcExecutor
RpcExecutor.QueueBalancer
Constructor and Description |
---|
RWQueueRpcExecutor(String name,
int handlerCount,
int numQueues,
float readShare,
float scanShare,
int maxQueueLength) |
RWQueueRpcExecutor(String name,
int handlerCount,
int numQueues,
float readShare,
float scanShare,
int maxQueueLength,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable) |
RWQueueRpcExecutor(String name,
int handlerCount,
int numQueues,
float readShare,
float scanShare,
int maxQueueLength,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable,
Class<? extends BlockingQueue> readQueueClass,
Object... readQueueInitArgs) |
RWQueueRpcExecutor(String name,
int handlerCount,
int numQueues,
float readShare,
int maxQueueLength,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable) |
RWQueueRpcExecutor(String name,
int handlerCount,
int numQueues,
float readShare,
int maxQueueLength,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable,
Class<? extends BlockingQueue> readQueueClass,
Object... readQueueInitArgs) |
RWQueueRpcExecutor(String name,
int writeHandlers,
int readHandlers,
int numWriteQueues,
int numReadQueues,
Class<? extends BlockingQueue> writeQueueClass,
Object[] writeQueueInitArgs,
Class<? extends BlockingQueue> readQueueClass,
Object[] readQueueInitArgs) |
RWQueueRpcExecutor(String name,
int writeHandlers,
int readHandlers,
int numWriteQueues,
int numReadQueues,
float scanShare,
Class<? extends BlockingQueue> writeQueueClass,
Object[] writeQueueInitArgs,
Class<? extends BlockingQueue> readQueueClass,
Object[] readQueueInitArgs) |
Modifier and Type | Method and Description |
---|---|
void |
dispatch(CallRunner callTask)
Add the request to the executor queue
|
int |
getQueueLength()
Returns the length of the pending queue
|
protected List<BlockingQueue<CallRunner>> |
getQueues()
Returns the list of request queues
|
protected void |
startHandlers(int port) |
consumerLoop, getActiveHandlerCount, getBalancer, start, startHandlers, stop
public RWQueueRpcExecutor(String name, int handlerCount, int numQueues, float readShare, int maxQueueLength, org.apache.hadoop.conf.Configuration conf, Abortable abortable)
public RWQueueRpcExecutor(String name, int handlerCount, int numQueues, float readShare, float scanShare, int maxQueueLength)
public RWQueueRpcExecutor(String name, int handlerCount, int numQueues, float readShare, float scanShare, int maxQueueLength, org.apache.hadoop.conf.Configuration conf, Abortable abortable)
public RWQueueRpcExecutor(String name, int handlerCount, int numQueues, float readShare, int maxQueueLength, org.apache.hadoop.conf.Configuration conf, Abortable abortable, Class<? extends BlockingQueue> readQueueClass, Object... readQueueInitArgs)
public RWQueueRpcExecutor(String name, int handlerCount, int numQueues, float readShare, float scanShare, int maxQueueLength, org.apache.hadoop.conf.Configuration conf, Abortable abortable, Class<? extends BlockingQueue> readQueueClass, Object... readQueueInitArgs)
public RWQueueRpcExecutor(String name, int writeHandlers, int readHandlers, int numWriteQueues, int numReadQueues, Class<? extends BlockingQueue> writeQueueClass, Object[] writeQueueInitArgs, Class<? extends BlockingQueue> readQueueClass, Object[] readQueueInitArgs)
public RWQueueRpcExecutor(String name, int writeHandlers, int readHandlers, int numWriteQueues, int numReadQueues, float scanShare, Class<? extends BlockingQueue> writeQueueClass, Object[] writeQueueInitArgs, Class<? extends BlockingQueue> readQueueClass, Object[] readQueueInitArgs)
protected void startHandlers(int port)
startHandlers
in class RpcExecutor
public void dispatch(CallRunner callTask) throws InterruptedException
RpcExecutor
dispatch
in class RpcExecutor
InterruptedException
public int getQueueLength()
RpcExecutor
getQueueLength
in class RpcExecutor
protected List<BlockingQueue<CallRunner>> getQueues()
RpcExecutor
getQueues
in class RpcExecutor
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.