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.
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)