|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.adaptive.measurements.listeners.Listener
public abstract class Listener
A Listener object is invoked when online measurement information needs to be collected. This class does not define the update() method, the call back method from the runtime when a sample should be taken. The expectation is that immediately derived classes define an interface to the update() method from which classes may be further derived. CONSTRAINTS: Classes that are derived from Listener must be annotated as Uninterruptible to ensure that they are not interrupted by a thread switch. Since thread switching is disabled, listeners are expected to complete execution quickly, and therefore, must do a minimal amount of work.
| Field Summary | |
|---|---|
private boolean |
active
|
private Organizer |
organizer
|
| Constructor Summary | |
|---|---|
Listener()
|
|
| Method Summary | |
|---|---|
void |
activate()
Transition listener to active state |
void |
activateOrganizer()
Wake up the organizer thread (if any) associated with the listener |
boolean |
isActive()
Is the listener currently active (interested in getting "update" calls) |
void |
passivate()
Transition listener to passive state |
abstract void |
report()
Entry point to dump what has been collected. |
abstract void |
reset()
reset the listeners data structures |
void |
setOrganizer(Organizer organizer)
Organizer associated with this listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean active
private Organizer organizer
| Constructor Detail |
|---|
public Listener()
| Method Detail |
|---|
public abstract void report()
public final boolean isActive()
public final void activate()
public final void passivate()
public abstract void reset()
public final void setOrganizer(Organizer organizer)
public final void activateOrganizer()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||