Search in sources :

Example 26 with Daemon

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;
}
Also used : Daemon(org.apache.hadoop.util.Daemon)

Example 27 with Daemon

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();
}
Also used : Daemon(org.apache.hadoop.util.Daemon)

Aggregations

Daemon (org.apache.hadoop.util.Daemon)27 IOException (java.io.IOException)12 File (java.io.File)3 Method (java.lang.reflect.Method)3 Test (org.junit.Test)2 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 ThreadFactoryBuilder (com.google.common.util.concurrent.ThreadFactoryBuilder)1 EventLoop (io.netty.channel.EventLoop)1 EOFException (java.io.EOFException)1 FileNotFoundException (java.io.FileNotFoundException)1 OutputStreamWriter (java.io.OutputStreamWriter)1 RandomAccessFile (java.io.RandomAccessFile)1 Writer (java.io.Writer)1 Field (java.lang.reflect.Field)1 SocketTimeoutException (java.net.SocketTimeoutException)1 AsynchronousCloseException (java.nio.channels.AsynchronousCloseException)1 ArrayList (java.util.ArrayList)1 ExecutionException (java.util.concurrent.ExecutionException)1 HadoopIllegalArgumentException (org.apache.hadoop.HadoopIllegalArgumentException)1 Path (org.apache.hadoop.fs.Path)1