Class TimeoutExecutorThread<TEnvironment>
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.procedure2.StoppableThread
org.apache.hadoop.hbase.procedure2.TimeoutExecutorThread<TEnvironment>
- All Implemented Interfaces:
Runnable
Runs task on a period such as check for stuck workers.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ProcedureExecutor<TEnvironment>
private static final org.slf4j.Logger
private final DelayQueue<DelayedUtil.DelayedWithTimeout>
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionTimeoutExecutorThread
(ProcedureExecutor<TEnvironment> executor, ThreadGroup group, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(InlineChore chore) void
add
(Procedure<TEnvironment> procedure) private void
execDelayedProcedure
(DelayedProcedure<TEnvironment> delayed) private void
execInlineChore
(InlineChore chore) private void
protected void
boolean
remove
(Procedure<TEnvironment> procedure) void
run()
void
Methods inherited from class org.apache.hadoop.hbase.procedure2.StoppableThread
awaitTermination
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
-
LOG
-
executor
-
queue
-
-
Constructor Details
-
TimeoutExecutorThread
public TimeoutExecutorThread(ProcedureExecutor<TEnvironment> executor, ThreadGroup group, String name)
-
-
Method Details
-
sendStopSignal
- Specified by:
sendStopSignal
in classStoppableThread
-
run
-
add
-
add
-
remove
-
execInlineChore
-
execDelayedProcedure
-
executeInMemoryChore
-
executeTimedoutProcedure
-