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
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ModifierConstructorDescriptionWorkerThread
(ThreadGroup group) protected
WorkerThread
(ThreadGroup group, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the time since the current procedure is runningprotected boolean
keepAlive
(long lastUpdate) void
run()
private long
Encapsulates execution of the currentactiveProcedure
for easy tracing.void
toString()
Methods inherited from class org.apache.hadoop.hbase.procedure2.StoppableThread
awaitTermination
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, yield
-
Field Details
-
executionStartTime
-
activeProcedure
-
-
Constructor Details
-
WorkerThread
-
WorkerThread
-
-
Method Details
-
sendStopSignal
- Specified by:
sendStopSignal
in classStoppableThread
-
runProcedure
Encapsulates execution of the currentactiveProcedure
for easy tracing.- Throws:
IOException
-
run
-
toString
-
getCurrentRunTime
Returns the time since the current procedure is running -
keepAlive
-