use of org.apache.hadoop.util.Daemon in project SSM by Intel-bigdata.
the class CommandExecutor method start.
/**
* Start CommandExecutor.
*/
public boolean start() throws IOException {
// TODO add recovery code
commandExecutorThread = new Daemon(this);
commandExecutorThread.setName(this.getClass().getCanonicalName());
commandExecutorThread.start();
running = true;
return true;
}
use of org.apache.hadoop.util.Daemon in project hive by apache.
the class JvmPauseMonitor method start.
public void start() {
Preconditions.checkState(monitorThread == null, "JvmPauseMonitor thread is Already started");
monitorThread = new Daemon(new Monitor());
monitorThread.start();
}
Aggregations