Package org.apache.hadoop.hbase.ipc
Class TestSimpleRpcScheduler
java.lang.Object
org.apache.hadoop.hbase.ipc.TestSimpleRpcScheduler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate final org.apache.hadoop.hbase.ipc.RpcScheduler.Contextprivate static final org.slf4j.Loggerorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.ipc.CallRunnerprivate org.apache.hadoop.hbase.ipc.RpcSchedulerdisableHandlers(org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) private voiddoAnswerTaskExecution(org.apache.hadoop.hbase.ipc.CallRunner callTask, ArrayList<Integer> results, int value, int sleepInterval) private org.apache.hadoop.hbase.ipc.CallRunnergetMockedCallRunner(long timestamp, long sleepTime) voidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestRpcScheduler(String queueType) private voidtestRpcScheduler(String queueType, String pluggableQueueClass) voidvoidvoidprivate static voidwaitUntilQueueEmpty(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:
IOExceptionInterruptedException
-
disableHandlers
private org.apache.hadoop.hbase.ipc.RpcScheduler disableHandlers(org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) -
testCallQueueInfo
- Throws:
IOExceptionInterruptedException
-
testHandlerIsolation
- Throws:
IOExceptionInterruptedException
-
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
-