org.jikesrvm.adaptive.controller
Class HotMethodEvent

java.lang.Object
  extended by org.jikesrvm.adaptive.controller.HotMethodEvent
Direct Known Subclasses:
AINewHotEdgeEvent, HotMethodRecompilationEvent

public abstract class HotMethodEvent
extends Object

Abstract parent class for events from organizers to the controller used to communicate that a method should be considered as a candidate for recompilation.


Field Summary
private  CompiledMethod cm
          The compiled method associated querries.
private  double numSamples
          Number of samples attributed to this method.
 
Constructor Summary
HotMethodEvent(CompiledMethod _cm, double _numSamples)
           
HotMethodEvent(CompiledMethod _cm, int _numSamples)
           
 
Method Summary
 int getCMID()
           
 CompiledMethod getCompiledMethod()
           
 RVMMethod getMethod()
           
 double getNumSamples()
           
 int getOptCompiledLevel()
           
 int getPrevCompilerConstant()
           
 boolean isOptCompiled()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cm

private CompiledMethod cm
The compiled method associated querries.


numSamples

private double numSamples
Number of samples attributed to this method.

Constructor Detail

HotMethodEvent

HotMethodEvent(CompiledMethod _cm,
               double _numSamples)
Parameters:
_cm - the compiled method
_numSamples - the number of samples attributed to the method

HotMethodEvent

HotMethodEvent(CompiledMethod _cm,
               int _numSamples)
Parameters:
_cm - the compiled method
_numSamples - the number of samples attributed to the method
Method Detail

getCMID

public final int getCMID()

getCompiledMethod

public final CompiledMethod getCompiledMethod()

getMethod

public final RVMMethod getMethod()

isOptCompiled

public final boolean isOptCompiled()

getOptCompiledLevel

public final int getOptCompiledLevel()

getPrevCompilerConstant

public final int getPrevCompilerConstant()

getNumSamples

public final double getNumSamples()

toString

public String toString()
Overrides:
toString in class Object