|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.scheduler.SchedulerEventEngine
public class SchedulerEventEngine
This class is responsible for receiving events that come from the
EBSchedulerFacade
and process them.
Constructor Summary | |
---|---|
SchedulerEventEngine(Scheduler scheduler,
GumpManager gumpManager,
GumpClient gridMachineConsumer,
EBReplicaExecutorFacade ebReplicaExecutorFacade,
EBSchedulerFacade ebSchedulerFacade)
The constructor. |
Method Summary | |
---|---|
protected EBSchedulingHeuristic |
createSchedulingHeuristic()
|
GridManager |
getGridManager()
Returns the EBGridManager . |
EBSchedulingHeuristic |
getHeuristic()
Returns the EBSchedulingHeuristic . |
JobManager |
getJobManager()
Returns the EBJobManager . |
protected EBReplicaExecutorFacade |
getReplicaExecutorFacade()
|
boolean |
isAlive()
Checks if the EBSyncShutdownable is alive. |
void |
putEvent(ActionEvent event)
Puts an Event in the EventQueue. |
void |
run()
The Thread behavior. |
protected boolean |
schedule(EBSchedulingHeuristic schedulingHeuristic)
|
void |
shutdown(EventQueue<ShutdownResponseEvent> eq)
Marks this Runnable to be shutdown and tries to unbind all
remote objects. |
void |
startProcessing()
Starts the SchedulerEventEngine Thread . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchedulerEventEngine(Scheduler scheduler, GumpManager gumpManager, GumpClient gridMachineConsumer, EBReplicaExecutorFacade ebReplicaExecutorFacade, EBSchedulerFacade ebSchedulerFacade) throws ConfigException
scheduler
- GuMManager accessible through RMI.gumpManager
- GuMPManager accessible through RMI.gridMachineConsumer
- GridMachineConsumer accessible through RMI.ebReplicaExecutorFacade
- The EBReplicaExecutorFacadeebSchedulerFacade
- The EBSchedulerFacade
ConfigException
- When the scheduler could not be createdMethod Detail |
---|
protected EBSchedulingHeuristic createSchedulingHeuristic() throws ConfigException
ConfigException
public void startProcessing()
Thread
.
startProcessing
in interface EventEngine<ActionEvent>
public void putEvent(ActionEvent event)
Event
in the EventQueue.
putEvent
in interface EventEngine<ActionEvent>
event
- The Event
public JobManager getJobManager()
EBJobManager
.
EBJobManager
public GridManager getGridManager()
EBGridManager
.
EBGridManager
public EBSchedulingHeuristic getHeuristic()
EBSchedulingHeuristic
.
EBSchedulingHeuristic
protected EBReplicaExecutorFacade getReplicaExecutorFacade()
protected boolean schedule(EBSchedulingHeuristic schedulingHeuristic)
public void run()
Thread
behavior.
run
in interface java.lang.Runnable
public void shutdown(EventQueue<ShutdownResponseEvent> eq)
Runnable
to be shutdown and tries to unbind all
remote objects.
shutdown
in interface EBSyncShutdownable
eq
- EventQueue
that will contain the
ShutdownResponseEvent
after the object had
successfully shutdownpublic boolean isAlive()
EBSyncShutdownable
isAlive
in interface EBSyncShutdownable
EBSyncShutdownable.isAlive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |