|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfrysk.proc.ProcTasksAction
public final class ProcTasksAction
Provides a mechanism for tracing all clone events within a process. Notifies a ProcObserver.ProcTasks of any tasks added to or deleted from that process.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface frysk.proc.TaskObserver |
|---|
TaskObserver.Cloned, TaskObserver.Code, TaskObserver.Execed, TaskObserver.Forked, TaskObserver.Instruction, TaskObserver.Signaled, TaskObserver.Syscalls, TaskObserver.Terminated, TaskObserver.Terminating, TaskObserver.Watch |
| Constructor Summary | |
|---|---|
ProcTasksAction(Proc theProc,
ProcTasksObserver theProcTasksObserver)
An observer that monitors all Tasks of a process notifying the caller of each new Task as it is added. |
|
| Method Summary | |
|---|---|
void |
addedTo(Object observable)
Acknowledge the request to add this Observer from Object's set of observers was successful. |
void |
addFailed(Object observable,
Throwable w)
Notify that the attempt to add to the specified observer failed. |
void |
deletedFrom(Object observable)
Acknowledge the request to delete this Observer from Object's set of observers was successful (or that the Observer was spontaneously deleted, e.g., due to a task exit). |
Action |
updateClonedOffspring(Task parent,
Task offspring)
When ever a new cloned offspring appears notify the observer, and add a cloned observer to it. |
Action |
updateClonedParent(Task parent,
Task offspring)
Called when the Task (the parent) has cloned, creating a clone Task (the offspring). |
Action |
updateTerminated(Task task,
Signal signal,
int value)
Called once the Task has terminated; the process no longer exists. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcTasksAction(Proc theProc,
ProcTasksObserver theProcTasksObserver)
| Method Detail |
|---|
public Action updateClonedParent(Task parent,
Task offspring)
TaskObserver.Cloned
updateClonedParent in interface TaskObserver.Cloned
public Action updateClonedOffspring(Task parent,
Task offspring)
updateClonedOffspring in interface TaskObserver.Clonedpublic void addedTo(Object observable)
Observer
addedTo in interface Observer
public void addFailed(Object observable,
Throwable w)
Observer
addFailed in interface Observerpublic void deletedFrom(Object observable)
Observer
deletedFrom in interface Observer
public Action updateTerminated(Task task,
Signal signal,
int value)
TaskObserver.Terminated
updateTerminated in interface TaskObserver.Terminated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||