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
Methods inherited from class org.apache.hadoop.hbase.ipc.RpcHandler
run, stopRunning
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, 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
- Overrides:
getCallRunner
in classRpcHandler
- Returns:
- A
CallRunner
- Throws:
InterruptedException
- thrown byBlockingQueue.take()
-
loadCallRunner
- Parameters:
cr
- Task gotten via fastpath.- Returns:
- True if we successfully loaded our task
-