frysk.proc
Class ProcBlockAction

java.lang.Object
  extended by 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.


Constructor Summary
ProcBlockAction(File coreFile)
           
ProcBlockAction(int pid)
           
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.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)