org.jikesrvm.adaptive.measurements.organizers
Class Organizer

java.lang.Object
  extended by org.jikesrvm.scheduler.SystemThread
      extended by org.jikesrvm.adaptive.measurements.organizers.Organizer
Direct Known Subclasses:
AccumulatingMethodSampleOrganizer, DecayOrganizer, DynamicCallGraphOrganizer, MethodSampleOrganizer

public abstract class Organizer
extends SystemThread

An Organizer acts an an intermediary between the low level online measurements and the controller. An organizer may perform simple or complex tasks, but it is always simply following the instructions given by the controller.


Field Summary
private  Latch latch
          A latch used for activate/passivate.
protected  Listener listener
          The listener associated with this organizer.
 
Fields inherited from class org.jikesrvm.scheduler.SystemThread
rvmThread
 
Constructor Summary
Organizer()
          Constructor
 
Method Summary
 void activate()
          Called to activate the organizer thread (i.e. schedule it for execution).
protected abstract  void initialize()
          Organizer specific setup.
private  void passivate()
           
 void report()
          Last opportunity to say something.
 void run()
          Called when thread is scheduled.
(package private) abstract  void thresholdReached()
          Method that is called when the sampling threshold is reached
 
Methods inherited from class org.jikesrvm.scheduler.SystemThread
getRVMThread, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected Listener listener
The listener associated with this organizer. May be null if the organizer has no associated listener.


latch

private final Latch latch
A latch used for activate/passivate.

Constructor Detail

Organizer

public Organizer()
Constructor

Method Detail

run

public void run()
Called when thread is scheduled.

Specified by:
run in class SystemThread

report

public void report()
Last opportunity to say something.


thresholdReached

abstract void thresholdReached()
Method that is called when the sampling threshold is reached


initialize

protected abstract void initialize()
Organizer specific setup. A good place to install and activate any listeners.


passivate

private void passivate()

activate

public void activate()
Called to activate the organizer thread (i.e. schedule it for execution).