private static class HMaster.InitializationMonitor extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static boolean |
HALT_DEFAULT |
static String |
HALT_KEY
When timeout expired and initialization has not complete, call
System.exit(int) when
true, do nothing otherwise. |
private boolean |
haltOnTimeout |
private HMaster |
master |
private long |
timeout |
static long |
TIMEOUT_DEFAULT |
static String |
TIMEOUT_KEY
The amount of time in milliseconds to sleep before checking initialization status.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
InitializationMonitor(HMaster master)
Creates a Thread that monitors the
HMaster.isInitialized() state. |
Modifier and Type | Method and Description |
---|---|
void |
run() |
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, toString, yield
public static final String TIMEOUT_KEY
public static final long TIMEOUT_DEFAULT
public static final String HALT_KEY
System.exit(int)
when
true, do nothing otherwise.public static final boolean HALT_DEFAULT
private final long timeout
private final boolean haltOnTimeout
InitializationMonitor(HMaster master)
HMaster.isInitialized()
state.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.