frysk.proc.live
Class TestTaskObserverCode.CountingCodeObserver
java.lang.Object
frysk.proc.live.TestTaskObserverCode.CountingCodeObserver
- All Implemented Interfaces:
- Observer, TaskObserver, TaskObserver.Code
- Enclosing class:
- TestTaskObserverCode
static class TestTaskObserverCode.CountingCodeObserver
- extends Object
- implements TaskObserver.Code
Method Summary |
void |
addedTo(Object o)
Acknowledge the request to add this Observer from Object's set
of observers was successful. |
void |
addFailed(Object o,
Throwable w)
Notify that the attempt to add to the specified observer failed. |
void |
deletedFrom(Object o)
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). |
int |
hitsFor(Task task)
|
Action |
updateHit(Task task,
long addr)
The task has hit the breakpoint. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hitmap
Map hitmap
TestTaskObserverCode.CountingCodeObserver
TestTaskObserverCode.CountingCodeObserver(Task[] tasks)
updateHit
public Action updateHit(Task task,
long addr)
- Description copied from interface:
TaskObserver.Code
- 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.Code
hitsFor
public int hitsFor(Task task)
addedTo
public void addedTo(Object o)
- 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 o)
- 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
addFailed
public void addFailed(Object o,
Throwable w)
- Description copied from interface:
Observer
- Notify that the attempt to add to the specified observer failed.
- Specified by:
addFailed
in interface Observer