Package de.foellix.aql.system
Class ProcessWrapper
java.lang.Object
de.foellix.aql.system.ProcessWrapper
-
Constructor Summary
ConstructorsConstructorDescriptionProcessWrapper(Task task, Process process) Use this to create a wrapper for any other taskProcessWrapper(Process process) Use this to create a wrapper for extra tasks -
Method Summary
-
Constructor Details
-
ProcessWrapper
Use this to create a wrapper for extra tasks- Parameters:
process- The process to be wrapped
-
ProcessWrapper
Use this to create a wrapper for any other task- Parameters:
task- parent of the associated processprocess- The process to be wrapped
-
-
Method Details
-
waitFor
public int waitFor()Wraps a process including its commandline output.- Returns:
- 0 on normal termination
-
cancel
public boolean cancel() -
isAlive
public boolean isAlive() -
isCanceled
public boolean isCanceled() -
getPID
public long getPID() -
getOutput
-
addOutputLine
-