|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.peer.manager.PeerEventEngine
public class PeerEventEngine
This class is responsible for receiving events that come probably from a
EBPeerManagerFacade
and process them.
EBPeerFacade
,
Serialized FormConstructor Summary | |
---|---|
PeerEventEngine(java.lang.String threadName)
Creates a new PeerEventEngine . |
Method Summary | |
---|---|
boolean |
isAlive()
Checks if the EBSyncShutdownable is alive. |
void |
putEvent(ActionEvent event)
Inserts a Event - to be processed - into a internal
EventQueue . |
void |
run()
Consumes events from internal EventQueue . |
void |
shutdown(EventQueue<ShutdownResponseEvent> eq)
Marks this Runnable to be shutdown. |
void |
startProcessing()
Begin consuming of events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PeerEventEngine(java.lang.String threadName)
PeerEventEngine
.
threadName
- a name for the event processor threadMethod Detail |
---|
public void startProcessing()
process()
method) them.
startProcessing
in interface EventEngine<ActionEvent>
public void putEvent(ActionEvent event)
Event
- to be processed - into a internal
EventQueue
.
putEvent
in interface EventEngine<ActionEvent>
event
- A Event
to be processed.public void run()
EventQueue
. In other words,
it removes events from the queue and process (call the process()
method) them.
run
in interface java.lang.Runnable
public void shutdown(EventQueue<ShutdownResponseEvent> eq)
Runnable
to be shutdown. It saves the parameter
EventQueue
to put a ShutdownNotifyEvent
when the shutdown is done.
shutdown
in interface EBSyncShutdownable
eq
- A EventQueue
that receives a
ShutdownNotifyEvent
when the shutdown is completed.public 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 |