public class ProcessRunner
extends java.lang.Thread
Constructor and Description |
---|
ProcessRunner() |
Modifier and Type | Method and Description |
---|---|
HubConfig |
getHubConfig() |
java.lang.String |
getProcessOutput() |
static ProcessRunner |
newRunner() |
void |
run() |
ProcessRunner |
withArgs(java.util.List<java.lang.String> args) |
ProcessRunner |
withHubconfig(HubConfig hubConfig) |
ProcessRunner |
withStreamConsumer(java.util.function.Consumer<java.lang.String> consumer) |
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 HubConfig getHubConfig()
public java.lang.String getProcessOutput()
public static ProcessRunner newRunner()
public ProcessRunner withArgs(java.util.List<java.lang.String> args)
public ProcessRunner withHubconfig(HubConfig hubConfig)
public ProcessRunner withStreamConsumer(java.util.function.Consumer<java.lang.String> consumer)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread