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
Modifier and TypeFieldDescription(package private) final Deque<FastPathRpcHandler>
private CallRunner
private Semaphore
Fields inherited from class org.apache.hadoop.hbase.ipc.RpcHandler
abortable, activeHandlerCount, failedHandlerCount, handlerCount, handlerFailureThreshhold, q
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionFastPathRpcHandler
(String name, double handlerFailureThreshhold, int handlerCount, BlockingQueue<CallRunner> q, AtomicInteger activeHandlerCount, AtomicInteger failedHandlerCount, Abortable abortable, Deque<FastPathRpcHandler> fastPathHandlerStack) -
Method Summary
Modifier and TypeMethodDescriptionprotected CallRunner
Returns ACallRunner
n(package private) boolean
Methods inherited from class org.apache.hadoop.hbase.ipc.RpcHandler
run, stopRunning
Methods 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:RpcHandler
Returns ACallRunner
n- Overrides:
getCallRunner
in classRpcHandler
- Throws:
InterruptedException
-
loadCallRunner
- Parameters:
cr
- Task gotten via fastpath.- Returns:
- True if we successfully loaded our task
-