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 |
org.junit.rules.TestName |
testName |
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 |
testFastPathBalancedQueueRpcExecutorWithQueueLength0() |
void |
testHandlerIsolation() |
void |
testMetaRWScanQueues() |
void |
testPluggableRpcQueue() |
void |
testPluggableRpcQueueCanListenToConfigurationChanges() |
void |
testPluggableRpcQueueWireUpWithFastPathExecutor() |
void |
testPluggableRpcQueueWireUpWithoutFastPathExecutor() |
void |
testRpcScheduler() |
private void |
testRpcScheduler(String queueType) |
private void |
testRpcScheduler(String queueType,
String pluggableQueueClass) |
void |
testScanQueues() |
void |
testScanQueueWithZeroScanRatio() |
void |
testSoftAndHardQueueLimits() |
private static void |
waitUntilQueueEmpty(org.apache.hadoop.hbase.ipc.SimpleRpcScheduler scheduler) |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName testName
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
public void testPluggableRpcQueue() throws Exception
Exception
public void testPluggableRpcQueueWireUpWithFastPathExecutor() throws Exception
Exception
public void testPluggableRpcQueueWireUpWithoutFastPathExecutor() throws Exception
Exception
public void testPluggableRpcQueueCanListenToConfigurationChanges() throws Exception
Exception
private void testRpcScheduler(String queueType) throws Exception
Exception
private void testRpcScheduler(String queueType, String pluggableQueueClass) 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 testFastPathBalancedQueueRpcExecutorWithQueueLength0() 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.