private static class HMaster.InitializationMonitor extends HasThread
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.
|
Constructor and Description |
---|
HMaster.InitializationMonitor(HMaster master)
Creates a Thread that monitors the
HMaster.isInitialized() state. |
Modifier and Type | Method and Description |
---|---|
void |
run() |
getName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, start
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 HMaster master
private final long timeout
private final boolean haltOnTimeout
HMaster.InitializationMonitor(HMaster master)
HMaster.isInitialized()
state.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.