public class StreamFeeder extends CloseableDaemonThread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
StreamFeeder(String threadName,
WritableByteChannel channel,
CommandReader commandReader,
org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
disable() |
static byte[] |
encode(org.apache.maven.surefire.api.booter.MasterProcessCommand cmdType)
Public method for testing purposes.
|
static byte[] |
encode(org.apache.maven.surefire.api.booter.MasterProcessCommand cmdType,
String data)
Public method for testing purposes.
|
Throwable |
getException() |
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 StreamFeeder(@Nonnull String threadName, @Nonnull WritableByteChannel channel, @Nonnull CommandReader commandReader, @Nonnull org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger)
public void disable()
disable
in class CloseableDaemonThread
public Throwable getException()
public void close() throws IOException
IOException
public static byte[] encode(org.apache.maven.surefire.api.booter.MasterProcessCommand cmdType, String data)
cmdType
- command typedata
- data to encodepublic static byte[] encode(org.apache.maven.surefire.api.booter.MasterProcessCommand cmdType)
cmdType
- command typeCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.