org.im4java.process
Class ProcessTask
java.lang.Object
java.util.concurrent.FutureTask<ProcessEvent>
org.im4java.process.ProcessTask
- All Implemented Interfaces:
- java.lang.Runnable, java.util.concurrent.Future<ProcessEvent>, java.util.concurrent.RunnableFuture<ProcessEvent>
public class ProcessTask
- extends java.util.concurrent.FutureTask<ProcessEvent>
This class represents a runnable process. It extends FutureTask so
it can be used to query the result of an asynchronously run
process.
- Since:
- 1.1.0
- Version:
- $Revision: 1.2 $
- Author:
- $Author: bablokb $
Methods inherited from class java.util.concurrent.FutureTask |
done, get, get, isCancelled, isDone, run, runAndReset, set, setException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessTask
public ProcessTask(ProcessStarter pProcessStarter,
java.util.LinkedList<java.lang.String> pArgs,
ProcessEvent pProcessEvent)
- The constructor.
- Parameters:
pProcessStarter
- The creating ProcessStarterpArgs
- Arguments for the processpProcessEvent
- The ProcessEvent for this ProcessTask
getProcessStarter
public ProcessStarter getProcessStarter()
- Query the ProcessStarter field of this ProcessTask.
- Returns:
- the ProcessStarter which created this ProcessTask
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
- Specified by:
cancel
in interface java.util.concurrent.Future<ProcessEvent>
- Overrides:
cancel
in class java.util.concurrent.FutureTask<ProcessEvent>
Released under the LGPL, (c) Bernhard Bablok 2008-2010
Homepage: http://im4java.sourceforge.net/