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
FieldsModifier and TypeFieldDescriptionprivate final ProcedureExecutor<TEnvironment>private static final org.slf4j.Loggerprivate final DelayQueue<DelayedUtil.DelayedWithTimeout>Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionTimeoutExecutorThread(ProcedureExecutor<TEnvironment> executor, ThreadGroup group, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(InlineChore chore) voidadd(Procedure<TEnvironment> procedure) private voidexecDelayedProcedure(DelayedProcedure<TEnvironment> delayed) private voidexecInlineChore(InlineChore chore) private voidprotected voidbooleanremove(Procedure<TEnvironment> procedure) voidrun()voidMethods inherited from class org.apache.hadoop.hbase.procedure2.StoppableThread
awaitTerminationMethods 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:
sendStopSignalin classStoppableThread
-
run
-
add
-
add
-
remove
-
execInlineChore
-
execDelayedProcedure
-
executeInMemoryChore
-
executeTimedoutProcedure
-