|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.replicaexecutor.ReplicaExecutorEventEngine
public class ReplicaExecutorEventEngine
Description: This class is responsible for receiving events that come from
the EBReplicaExecutorFacade
and process then.
Constructor Summary | |
---|---|
protected |
ReplicaExecutorEventEngine()
Creates an empty ReplicaExecutorEventEngine This constructor should not be used. |
|
ReplicaExecutorEventEngine(EBReplicaExecutorFacade ebReplicaExecutorFacade,
EBSchedulerFacade ebSchedulerFacade)
Creates a ReplicaExecutorEventEngine with a EBReplicaExecutorFacade and a
EBSchedulerFacade |
Method Summary | |
---|---|
EBReplicaManager |
getEBReplicaManager()
Gets the EBReplicaManager object |
boolean |
isAlive()
Indicates if the thread is alive |
void |
putEvent(ActionEvent event)
Puts an Event in the EventQueue. |
void |
run()
The Thread behavior. |
void |
shutdown(EventQueue<ShutdownResponseEvent> eq)
Marks this Runnable to be shutdown. |
void |
startProcessing()
Starts the ReplicaExecutorEventEngine Thread . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ReplicaExecutorEventEngine()
public ReplicaExecutorEventEngine(EBReplicaExecutorFacade ebReplicaExecutorFacade, EBSchedulerFacade ebSchedulerFacade)
EBReplicaExecutorFacade
and a
EBSchedulerFacade
ebReplicaExecutorFacade
- The EBReplicaExecutorFacade who sends
events to this event processor .ebSchedulerFacade
- The EBSchedulerFacade who sends requests to the
EBReplicaExecutorFacadeMethod Detail |
---|
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 void run()
Thread
behavior.
run
in interface java.lang.Runnable
public void shutdown(EventQueue<ShutdownResponseEvent> eq)
Runnable
to be shutdown.
shutdown
in interface EBSyncShutdownable
eq
- EventQueue
that will contain the
ShutdownResponseEvent
after the object had
successfully shutdownpublic EBReplicaManager getEBReplicaManager()
EBReplicaManager
public boolean isAlive()
isAlive
in interface EBSyncShutdownable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |