Package org.apache.hadoop.util
Class Daemon.DaemonFactory
java.lang.Object
java.lang.Thread
org.apache.hadoop.util.Daemon
org.apache.hadoop.util.Daemon.DaemonFactory
- All Implemented Interfaces:
Runnable,ThreadFactory
- Enclosing class:
- Daemon
@LimitedPrivate({"HDFS","MapReduce"})
public static class Daemon.DaemonFactory
extends Daemon
implements ThreadFactory
Provide a factory for named daemon threads, for use in ExecutorServices
constructors
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.util.Daemon
Daemon.DaemonFactoryNested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.util.Daemon
getRunnable, run, start, workMethods 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, stop, suspend, toString, yield
-
Constructor Details
-
DaemonFactory
public DaemonFactory()
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-