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
Methods inherited from class org.apache.hadoop.hbase.ipc.RpcHandler
run, stopRunningMethods 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:
getCallRunnerin classRpcHandler- Returns:
- A
CallRunner - Throws:
InterruptedException- thrown byBlockingQueue.take()
-
loadCallRunner
- Parameters:
cr- Task gotten via fastpath.- Returns:
- True if we successfully loaded our task
-