@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public class RWQueueRpcExecutor extends RpcExecutor
RpcExecutor.QueueBalancer
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private int |
numReadQueues |
private int |
numScanQueues |
private int |
numWriteQueues |
private List<BlockingQueue<CallRunner>> |
queues |
private RpcExecutor.QueueBalancer |
readBalancer |
private int |
readHandlersCount |
private RpcExecutor.QueueBalancer |
scanBalancer |
private int |
scanHandlersCount |
private RpcExecutor.QueueBalancer |
writeBalancer |
private int |
writeHandlersCount |
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 |
---|---|
private static int |
calcNumReaders(int count,
float readShare) |
private static int |
calcNumWriters(int count,
float readShare) |
boolean |
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
|
private boolean |
isScanRequest(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header,
com.google.protobuf.Message param) |
private boolean |
isWriteRequest(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header,
com.google.protobuf.Message param) |
protected void |
startHandlers(int port) |
consumerLoop, getActiveHandlerCount, getBalancer, start, startHandlers, stop
private static final org.apache.commons.logging.Log LOG
private final List<BlockingQueue<CallRunner>> queues
private final RpcExecutor.QueueBalancer writeBalancer
private final RpcExecutor.QueueBalancer readBalancer
private final RpcExecutor.QueueBalancer scanBalancer
private final int writeHandlersCount
private final int readHandlersCount
private final int scanHandlersCount
private final int numWriteQueues
private final int numReadQueues
private final int numScanQueues
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 boolean dispatch(CallRunner callTask) throws InterruptedException
RpcExecutor
dispatch
in class RpcExecutor
InterruptedException
private boolean isWriteRequest(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header, com.google.protobuf.Message param)
private boolean isScanRequest(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header, com.google.protobuf.Message param)
public int getQueueLength()
RpcExecutor
getQueueLength
in class RpcExecutor
protected List<BlockingQueue<CallRunner>> getQueues()
RpcExecutor
getQueues
in class RpcExecutor
private static int calcNumWriters(int count, float readShare)
private static int calcNumReaders(int count, float readShare)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.