Class ProcedureExecutor.WorkerThread
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.procedure2.StoppableThread
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.WorkerThread
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ProcedureExecutor.KeepAliveWorkerThread
- Enclosing class:
- ProcedureExecutor<TEnvironment>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionWorkerThread(ThreadGroup group) protectedWorkerThread(ThreadGroup group, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the time since the current procedure is runningprotected booleankeepAlive(long lastUpdate) voidrun()private longEncapsulates execution of the currentactiveProcedurefor easy tracing.voidtoString()Methods inherited from class org.apache.hadoop.hbase.procedure2.StoppableThread
awaitTerminationMethods 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, yield
-
Field Details
-
executionStartTime
-
activeProcedure
-
-
Constructor Details
-
WorkerThread
-
WorkerThread
-
-
Method Details
-
sendStopSignal
- Specified by:
sendStopSignalin classStoppableThread
-
runProcedure
Encapsulates execution of the currentactiveProcedurefor easy tracing.- Throws:
IOException
-
run
-
toString
-
getCurrentRunTime
Returns the time since the current procedure is running -
keepAlive
-