|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.executor.AbstractExecutor
public abstract class AbstractExecutor
This class define an abstraction for the operating system dependent part of executing commands. The concrete implementors of this class must provide the correct behavior for executing a command, killing a process and changing the permissions of files.
Constructor Summary | |
---|---|
AbstractExecutor()
|
Method Summary | |
---|---|
protected ExecutorResult |
catchOutput(java.lang.Process process)
Creates and returns a instance of ExcecutorResult that will contain the informations about the finished process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ourgrid.common.executor.Executor |
---|
chmod, execute, execute, getResult, kill |
Constructor Detail |
---|
public AbstractExecutor()
Method Detail |
---|
protected ExecutorResult catchOutput(java.lang.Process process) throws java.lang.InterruptedException
process
- The process that is supposed to be finished and the
streams must be caught and the exit value recovered.
java.lang.InterruptedException
- If the thread that is catching the result is
interrupted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |