public class TestSimpleRpcScheduler extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestSimpleRpcScheduler.CoDelEnvironmentEdge |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.hbase.ipc.RpcScheduler.Context |
CONTEXT |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
TestSimpleRpcScheduler() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.ipc.CallRunner |
createMockTask() |
private org.apache.hadoop.hbase.ipc.RpcScheduler |
disableHandlers(org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) |
private void |
doAnswerTaskExecution(org.apache.hadoop.hbase.ipc.CallRunner callTask,
ArrayList<Integer> results,
int value,
int sleepInterval) |
private org.apache.hadoop.hbase.ipc.CallRunner |
getMockedCallRunner(long timestamp,
long sleepTime) |
void |
setUp() |
void |
testBasic() |
void |
testCallQueueInfo() |
void |
testCoDelScheduling() |
void |
testHandlerIsolation() |
void |
testMetaRWScanQueues() |
void |
testRpcScheduler() |
private void |
testRpcScheduler(String queueType) |
void |
testScanQueues() |
void |
testScanQueueWithZeroScanRatio() |
void |
testSoftAndHardQueueLimits() |
private static void |
waitUntilQueueEmpty(org.apache.hadoop.hbase.ipc.SimpleRpcScheduler scheduler) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private final org.apache.hadoop.hbase.ipc.RpcScheduler.Context CONTEXT
private org.apache.hadoop.conf.Configuration conf
public TestSimpleRpcScheduler()
public void setUp()
public void testBasic() throws IOException, InterruptedException
IOException
InterruptedException
private org.apache.hadoop.hbase.ipc.RpcScheduler disableHandlers(org.apache.hadoop.hbase.ipc.RpcScheduler scheduler)
public void testCallQueueInfo() throws IOException, InterruptedException
IOException
InterruptedException
public void testHandlerIsolation() throws IOException, InterruptedException
IOException
InterruptedException
private org.apache.hadoop.hbase.ipc.CallRunner createMockTask()
public void testRpcScheduler() throws Exception
Exception
private void testRpcScheduler(String queueType) throws Exception
Exception
public void testScanQueueWithZeroScanRatio() throws Exception
Exception
public void testScanQueues() throws Exception
Exception
private void doAnswerTaskExecution(org.apache.hadoop.hbase.ipc.CallRunner callTask, ArrayList<Integer> results, int value, int sleepInterval)
private static void waitUntilQueueEmpty(org.apache.hadoop.hbase.ipc.SimpleRpcScheduler scheduler) throws InterruptedException
InterruptedException
public void testSoftAndHardQueueLimits() throws Exception
Exception
public void testCoDelScheduling() throws Exception
Exception
public void testMetaRWScanQueues() throws Exception
Exception
private org.apache.hadoop.hbase.ipc.CallRunner getMockedCallRunner(long timestamp, long sleepTime) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.