|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.process.base.ProcessUtilImpl.ProcessExecutor
protected class ProcessUtilImpl.ProcessExecutor
This inner class is does the actual execution of the Process(es).
| Field Summary | |
|---|---|
private ProcessContext |
context
|
private Process[] |
processes
|
private AsyncTransferrer[] |
transferrers
|
| Constructor Summary | |
|---|---|
ProcessUtilImpl.ProcessExecutor(ProcessContext context,
ProcessBuilder[] builders)
The constructor. |
|
| Method Summary | |
|---|---|
Integer |
call()
This method executes the Process(es). |
protected void |
dispose()
This method disposes this executor. |
void |
stop()
This method stops the task. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final ProcessContext context
ProcessExecutor#ProcessExecutor(ProcessContext, ProcessBuilder[])private final Process[] processes
ProcessExecutor#ProcessExecutor(ProcessContext, ProcessBuilder[])private final AsyncTransferrer[] transferrers
ProcessExecutor#ProcessExecutor(ProcessContext, ProcessBuilder[])| Constructor Detail |
|---|
public ProcessUtilImpl.ProcessExecutor(ProcessContext context,
ProcessBuilder[] builders)
throws IOException
context - is the context of the process pipe.builders - are the configurations of the Process(es) to
execute. The array needs to have a length greater than zero.
IOException - if an input/output error occurred.| Method Detail |
|---|
protected void dispose()
destroyed and all streams are closed.
public void stop()
stop in interface Stoppable
public Integer call()
throws InterruptedException
Process(es).
call in interface Callable<Integer>InterruptedException - if a process was interrupted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||