Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_FAILED |
static int |
NOT_EXECUTED |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Command(List<String> args) |
Command(List<String> args,
Map<String,String> envp) |
Command(List<String> args,
Map<String,String> envp,
String execdir) |
Command(String command) |
Command(String command,
Map<String,String> envp) |
Command(String command,
Map<String,String> envp,
String execdir) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
String[] |
getErrorLines() |
List<String> |
getErrors() |
Exception |
getException() |
int |
getExitStatus() |
String[] |
getOutputLines() |
List<String> |
getOutputs() |
boolean |
isCompleted() |
boolean |
wasStarted() |
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static final int NOT_EXECUTED
public static final int COMMAND_FAILED
public Command(String command)
public void execute()
public boolean isCompleted()
public boolean wasStarted()
public int getExitStatus()
public String[] getOutputLines()
public String[] getErrorLines()
public Exception getException()
Copyright © 2008–2023 RIPE Network Coordination Centre (RIPE NCC). All rights reserved.