Package org.apache.hadoop.hbase.master
Class MasterInitializationMonitor
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.master.MasterInitializationMonitor
- All Implemented Interfaces:
Runnable
Protection against zombie master. Started once Master accepts active responsibility and starts
taking over responsibilities. Allows a finite time window before giving up ownership.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final String
When timeout expired and initialization has not complete, callSystem.exit(int)
when true, do nothing otherwise.private final boolean
private static final org.slf4j.Logger
private final HMaster
private final long
static final long
static final String
The amount of time in milliseconds to sleep before checking initialization status.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionMasterInitializationMonitor
(HMaster master) Creates a Thread that monitors the#isInitialized()
state. -
Method Summary
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
-
TIMEOUT_KEY
The amount of time in milliseconds to sleep before checking initialization status.- See Also:
-
TIMEOUT_DEFAULT
-
HALT_KEY
When timeout expired and initialization has not complete, callSystem.exit(int)
when true, do nothing otherwise.- See Also:
-
HALT_DEFAULT
- See Also:
-
master
-
timeout
-
haltOnTimeout
-
-
Constructor Details
-
MasterInitializationMonitor
MasterInitializationMonitor(HMaster master) Creates a Thread that monitors the#isInitialized()
state.
-
-
Method Details