frysk.proc
Class ProcBlockAction
java.lang.Object
frysk.proc.ProcBlockAction
public class ProcBlockAction
- extends Object
This class blocks all of the threads in a process and performs a
given action defined by the method existingTask(Task task) on each
task.
Extensions of this class must implement existingTask(), and
allExistingTasksCompleted() which is called when existingTask() has been
called on all tasks.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fine
private static final Log fine
action
private ProcBlockObserver action
taskObserver
private ProcBlockAction.ProcBlockTaskObserver taskObserver
isMainTaskAdded
private boolean isMainTaskAdded
proc
protected Proc proc
tasks
private LinkedList tasks
taskList
private LinkedList taskList
finished
private boolean finished
ProcBlockAction
public ProcBlockAction(Proc theProc,
ProcBlockObserver action)
- Creates a ProcBlockAction which will attach to the given
process stopping all of its tasks, performing the requested
action on each task, and then removing itself.
- Parameters:
theProc
- a non-null Process.
ProcBlockAction
public ProcBlockAction(int pid)
ProcBlockAction
public ProcBlockAction(File coreFile)
requestAdd
private void requestAdd()
requestAddObservers
private void requestAddObservers(Task task)
requestDeleteObservers
private void requestDeleteObservers(Task task)
requestDelete
private void requestDelete()
checkFinish
private void checkFinish(Task task)