net.ripe.rpki.commons.rsync
Class Command

java.lang.Object
  extended by java.lang.Thread
      extended by net.ripe.rpki.commons.rsync.Command
All Implemented Interfaces:
Runnable

public class Command
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static int COMMAND_FAILED
           
static int NOT_EXECUTED
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
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)
           
 
Method Summary
 void execute()
           
 String[] getErrorLines()
           
 List<String> getErrors()
           
 Exception getException()
           
 int getExitStatus()
           
 String[] getOutputLines()
           
 List<String> getOutputs()
           
 boolean isCompleted()
           
 boolean wasStarted()
           
 
Methods inherited from class java.lang.Thread
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, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)

Command

public Command(String command,
               Map<String,String> envp)

Command

public Command(String command,
               Map<String,String> envp,
               String execdir)

Command

public Command(List<String> args)

Command

public Command(List<String> args,
               Map<String,String> envp)

Command

public Command(List<String> args,
               Map<String,String> envp,
               String execdir)
Method Detail

execute

public void execute()

isCompleted

public boolean isCompleted()

wasStarted

public boolean wasStarted()

getExitStatus

public int getExitStatus()

getOutputLines

public String[] getOutputLines()

getOutputs

public List<String> getOutputs()

getErrorLines

public String[] getErrorLines()

getErrors

public List<String> getErrors()

getException

public Exception getException()


Copyright © 2008-2014 RIPE NCC, the Netherlands. All Rights Reserved.