Package org.apache.hadoop.hbase.ipc
Class TestSimpleRpcScheduler
java.lang.Object
org.apache.hadoop.hbase.ipc.TestSimpleRpcScheduler
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private final org.apache.hadoop.hbase.ipc.RpcScheduler.Context
private static final org.slf4j.Logger
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.ipc.CallRunner
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
void
void
void
void
void
void
void
void
void
void
private void
testRpcScheduler
(String queueType) private void
testRpcScheduler
(String queueType, String pluggableQueueClass) void
void
void
private static void
waitUntilQueueEmpty
(org.apache.hadoop.hbase.ipc.SimpleRpcScheduler scheduler)
-
Field Details
-
CLASS_RULE
-
testName
-
LOG
-
CONTEXT
-
conf
-
-
Constructor Details
-
TestSimpleRpcScheduler
public TestSimpleRpcScheduler()
-
-
Method Details
-
setUp
-
testBasic
- Throws:
IOException
InterruptedException
-
disableHandlers
private org.apache.hadoop.hbase.ipc.RpcScheduler disableHandlers(org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) -
testCallQueueInfo
- Throws:
IOException
InterruptedException
-
testHandlerIsolation
- Throws:
IOException
InterruptedException
-
createMockTask
-
testRpcScheduler
- Throws:
Exception
-
testPluggableRpcQueue
- Throws:
Exception
-
testPluggableRpcQueueWireUpWithFastPathExecutor
- Throws:
Exception
-
testPluggableRpcQueueWireUpWithoutFastPathExecutor
- Throws:
Exception
-
testPluggableRpcQueueCanListenToConfigurationChanges
- Throws:
Exception
-
testRpcScheduler
- Throws:
Exception
-
testRpcScheduler
- Throws:
Exception
-
testScanQueueWithZeroScanRatio
- Throws:
Exception
-
testScanQueues
- Throws:
Exception
-
doAnswerTaskExecution
private void doAnswerTaskExecution(org.apache.hadoop.hbase.ipc.CallRunner callTask, ArrayList<Integer> results, int value, int sleepInterval) -
waitUntilQueueEmpty
private static void waitUntilQueueEmpty(org.apache.hadoop.hbase.ipc.SimpleRpcScheduler scheduler) throws InterruptedException - Throws:
InterruptedException
-
testSoftAndHardQueueLimits
- Throws:
Exception
-
testCoDelScheduling
- Throws:
Exception
-
testFastPathBalancedQueueRpcExecutorWithQueueLength0
- Throws:
Exception
-
testMetaRWScanQueues
- Throws:
Exception
-
getMockedCallRunner
private org.apache.hadoop.hbase.ipc.CallRunner getMockedCallRunner(long timestamp, long sleepTime) throws IOException - Throws:
IOException
-