frysk.proc
Class TestTaskObserverWatchpoint.AddFailWatchObserver

java.lang.Object
  extended by frysk.proc.TestTaskObserverWatchpoint.AddFailWatchObserver
All Implemented Interfaces:
Observer, TaskObserver, TaskObserver.Watch
Enclosing class:
TestTaskObserverWatchpoint

static class TestTaskObserverWatchpoint.AddFailWatchObserver
extends Object
implements TaskObserver.Watch


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
 
Field Summary
(package private)  boolean addFailed
           
 
Constructor Summary
TestTaskObserverWatchpoint.AddFailWatchObserver()
           
 
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 updateHit(Task task, long address, int length)
          The task has hit the breakpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addFailed

boolean addFailed
Constructor Detail

TestTaskObserverWatchpoint.AddFailWatchObserver

TestTaskObserverWatchpoint.AddFailWatchObserver()
Method Detail

updateHit

public Action updateHit(Task task,
                        long address,
                        int length)
Description copied from interface: TaskObserver.Watch
The task has hit the breakpoint. Return Action.BLOCK to block the task's further execution. Note that all Tasks of a Proc share their breakpoints, so this method needs to check the actual Task that got hit.

Specified by:
updateHit in interface TaskObserver.Watch

addFailed

public void addFailed(Object observable,
                      Throwable w)
Description copied from interface: Observer
Notify that the attempt to add to the specified observer failed.

Specified by:
addFailed in interface Observer

addedTo

public void addedTo(Object observable)
Description copied from interface: Observer
Acknowledge the request to add this Observer from Object's set of observers was successful.

Specified by:
addedTo in interface Observer

deletedFrom

public void deletedFrom(Object observable)
Description copied from interface: Observer
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).

Specified by:
deletedFrom in interface Observer