Package org.apache.hadoop.hbase.ipc
Class RpcHandler
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.ipc.RpcHandler
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
FastPathRpcHandler
Thread to handle rpc call. Should only be used in
RpcExecutor
and its sub-classes.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescription(package private) final Abortable
(package private) final AtomicInteger
(package private) final AtomicInteger
(package private) final int
(package private) final double
private static final org.slf4j.Logger
(package private) final BlockingQueue<CallRunner>
Q to find CallRunners to run in.private boolean
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionRpcHandler
(String name, double handlerFailureThreshhold, int handlerCount, BlockingQueue<CallRunner> q, AtomicInteger activeHandlerCount, AtomicInteger failedHandlerCount, Abortable abortable) -
Method Summary
Modifier and TypeMethodDescriptionprotected CallRunner
void
run()
private void
run
(CallRunner cr) void
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
-
LOG
-
q
Q to find CallRunners to run in. -
handlerCount
-
handlerFailureThreshhold
-
activeHandlerCount
-
failedHandlerCount
-
abortable
-
running
-
-
Constructor Details
-
RpcHandler
RpcHandler(String name, double handlerFailureThreshhold, int handlerCount, BlockingQueue<CallRunner> q, AtomicInteger activeHandlerCount, AtomicInteger failedHandlerCount, Abortable abortable)
-
-
Method Details
-
getCallRunner
- Returns:
- A
CallRunner
- Throws:
InterruptedException
- thrown byBlockingQueue.take()
-
stopRunning
-
run
-
run
-