Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Command(boolean useLineFeed,
File workingDir,
String... args) |
Command(boolean useLineFeed,
Logger logger,
String uniqueName,
String logFile,
File workingDir,
String... args) |
Command(String... args) |
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, yieldpublic Command(String... args)
public boolean isFailed()
public Exception getFailureReason()
public void setListener(java.util.function.Consumer<String> listener)
public void setErrorListener(java.util.function.Consumer<String> errorListener)
public void setRedirectErrorStream(boolean redirectErrorStream)
public String getSysOut()
public String getSysErr()
public static String getBuildDir()
public static int getFreePort(int preferred)
public static boolean waitForPort(String host, int port)
public static boolean waitForHttp(String url)
public static boolean waitForSocket(int port)
public File getWorkingDir()
public List getArgList()
public Logger getLogger()
public LogAppender getAppender()
public String getUniqueName()
public int getExitCode()
public int waitSync()
public void close(boolean force)
Copyright © 2020. All rights reserved.