Class TestMasterFifoRpcScheduler.MockMasterFifoRpcScheduler

java.lang.Object
org.apache.hadoop.hbase.ipc.RpcScheduler
org.apache.hadoop.hbase.ipc.FifoRpcScheduler
org.apache.hadoop.hbase.ipc.MasterFifoRpcScheduler
org.apache.hadoop.hbase.ipc.TestMasterFifoRpcScheduler.MockMasterFifoRpcScheduler
Enclosing class:
TestMasterFifoRpcScheduler

private static class TestMasterFifoRpcScheduler.MockMasterFifoRpcScheduler extends org.apache.hadoop.hbase.ipc.MasterFifoRpcScheduler
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.hbase.ipc.RpcScheduler

    org.apache.hadoop.hbase.ipc.RpcScheduler.Context
  • Field Summary

    Fields inherited from class org.apache.hadoop.hbase.ipc.MasterFifoRpcScheduler

    MASTER_SERVER_REPORT_HANDLER_COUNT

    Fields inherited from class org.apache.hadoop.hbase.ipc.FifoRpcScheduler

    executor, handlerCount, maxQueueLength, queueSize

    Fields inherited from class org.apache.hadoop.hbase.ipc.RpcScheduler

    IPC_SERVER_BULKLOAD_MAX_CALLQUEUE_LENGTH, IPC_SERVER_MAX_CALLQUEUE_LENGTH, IPC_SERVER_PRIORITY_MAX_CALLQUEUE_LENGTH, IPC_SERVER_REPLICATION_MAX_CALLQUEUE_LENGTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockMasterFifoRpcScheduler(org.apache.hadoop.conf.Configuration conf, int callHandlerCount, int rsReportHandlerCount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    getCallMethod(org.apache.hadoop.hbase.ipc.CallRunner task)
    Override this method because we can't mock a Descriptors.MethodDescriptor

    Methods inherited from class org.apache.hadoop.hbase.ipc.MasterFifoRpcScheduler

    dispatch, getActiveRpcHandlerCount, getCallQueueInfo, getGeneralQueueLength, start, stop

    Methods inherited from class org.apache.hadoop.hbase.ipc.FifoRpcScheduler

    executeRpcCall, getActiveBulkLoadRpcHandlerCount, getActiveGeneralRpcHandlerCount, getActiveMetaPriorityRpcHandlerCount, getActivePriorityRpcHandlerCount, getActiveReadRpcHandlerCount, getActiveReplicationRpcHandlerCount, getActiveScanRpcHandlerCount, getActiveWriteRpcHandlerCount, getBulkLoadQueueLength, getMetaPriorityQueueLength, getNumGeneralCallsDropped, getNumLifoModeSwitches, getPriorityQueueLength, getReadQueueLength, getReplicationQueueLength, getScanQueueLength, getWriteQueueLength, init, updateMethodCountAndSizeByQueue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockMasterFifoRpcScheduler

      public MockMasterFifoRpcScheduler(org.apache.hadoop.conf.Configuration conf, int callHandlerCount, int rsReportHandlerCount)
  • Method Details

    • getCallMethod

      protected String getCallMethod(org.apache.hadoop.hbase.ipc.CallRunner task)
      Override this method because we can't mock a Descriptors.MethodDescriptor
      Overrides:
      getCallMethod in class org.apache.hadoop.hbase.ipc.FifoRpcScheduler