org.ourgrid.mygrid.scheduler.event
Class AddJobRequestEvent

java.lang.Object
  extended by org.ourgrid.mygrid.scheduler.event.AddJobRequestEvent
All Implemented Interfaces:
java.io.Serializable, ActionEvent, Event, RequestEvent, JobRequestEvent

public class AddJobRequestEvent
extends java.lang.Object
implements JobRequestEvent

Event used to add jobs to be processed by the Scheduler.

See Also:
Serialized Form

Constructor Summary
AddJobRequestEvent(EBSchedulingHeuristic ebSchedulingHeuristic, int jobId, JobSpec jobSpec)
          The constructor.
 
Method Summary
 void process()
          Adds the job given in the constructor to the scheduling heuristic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddJobRequestEvent

public AddJobRequestEvent(EBSchedulingHeuristic ebSchedulingHeuristic,
                          int jobId,
                          JobSpec jobSpec)
The constructor.

Parameters:
ebSchedulingHeuristic - The scheduling heuristic
jobId - The job identification
jobSpec - The job specification
Method Detail

process

public void process()
Adds the job given in the constructor to the scheduling heuristic.

Specified by:
process in interface ActionEvent