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 |
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
IOExceptionInterruptedExceptionprivate org.apache.hadoop.hbase.ipc.RpcScheduler disableHandlers(org.apache.hadoop.hbase.ipc.RpcScheduler scheduler)
public void testCallQueueInfo() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testHandlerIsolation() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate org.apache.hadoop.hbase.ipc.CallRunner createMockTask()
public void testRpcScheduler() throws Exception
Exceptionprivate void testRpcScheduler(String queueType) throws Exception
Exceptionpublic void testScanQueueWithZeroScanRatio() throws Exception
Exceptionpublic void testScanQueues() throws Exception
Exceptionprivate 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
InterruptedExceptionpublic void testSoftAndHardQueueLimits() throws Exception
Exceptionpublic void testCoDelScheduling() throws Exception
Exceptionprivate org.apache.hadoop.hbase.ipc.CallRunner getMockedCallRunner(long timestamp, long sleepTime) throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.