Package org.apache.hadoop.hbase.ipc
Class FastPathRpcHandler
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.ipc.RpcHandler
org.apache.hadoop.hbase.ipc.FastPathRpcHandler
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Deque<FastPathRpcHandler>private CallRunnerprivate SemaphoreFields inherited from class org.apache.hadoop.hbase.ipc.RpcHandler
abortable, activeHandlerCount, failedHandlerCount, handlerCount, handlerFailureThreshhold, qFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionFastPathRpcHandler(String name, double handlerFailureThreshhold, int handlerCount, BlockingQueue<CallRunner> q, AtomicInteger activeHandlerCount, AtomicInteger failedHandlerCount, Abortable abortable, Deque<FastPathRpcHandler> fastPathHandlerStack) -
Method Summary
Modifier and TypeMethodDescriptionprotected CallRunnerReturns ACallRunnern(package private) booleanMethods inherited from class org.apache.hadoop.hbase.ipc.RpcHandler
run, stopRunningMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
fastPathHandlerStack
-
semaphore
-
loadedCallRunner
-
-
Constructor Details
-
FastPathRpcHandler
FastPathRpcHandler(String name, double handlerFailureThreshhold, int handlerCount, BlockingQueue<CallRunner> q, AtomicInteger activeHandlerCount, AtomicInteger failedHandlerCount, Abortable abortable, Deque<FastPathRpcHandler> fastPathHandlerStack)
-
-
Method Details
-
getCallRunner
Description copied from class:RpcHandlerReturns ACallRunnern- Overrides:
getCallRunnerin classRpcHandler- Throws:
InterruptedException
-
loadCallRunner
- Parameters:
cr- Task gotten via fastpath.- Returns:
- True if we successfully loaded our task
-