Package net.ripe.rpki.commons.rsync
Class Command
- java.lang.Object
-
- java.lang.Thread
-
- net.ripe.rpki.commons.rsync.Command
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMMAND_FAILEDstatic intNOT_EXECUTED-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description Command(String command)Command(String command, Map<String,String> envp)Command(String command, Map<String,String> envp, String execdir)Command(List<String> args)Command(List<String> args, Map<String,String> envp)Command(List<String> args, Map<String,String> envp, String execdir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()String[]getErrorLines()List<String>getErrors()ExceptiongetException()intgetExitStatus()String[]getOutputLines()List<String>getOutputs()booleanisCompleted()booleanwasStarted()-
Methods 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
NOT_EXECUTED
public static final int NOT_EXECUTED
- See Also:
- Constant Field Values
-
COMMAND_FAILED
public static final int COMMAND_FAILED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Command
public Command(String command)
-
-
Method Detail
-
execute
public void execute()
-
isCompleted
public boolean isCompleted()
-
wasStarted
public boolean wasStarted()
-
getExitStatus
public int getExitStatus()
-
getOutputLines
public String[] getOutputLines()
-
getErrorLines
public String[] getErrorLines()
-
getException
public Exception getException()
-
-