|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
aa.core.DelayedMessageManager
This class manages communication messages for mobile actors
that are in transit.
When an actor is moving from one host to another,
the messages to the actor should be delayed.
This deleay is managed by a Delayed Message Manager.
History:
Field Summary | |
private ActorManager |
m_amActorManager
The reference to an Actor Manager |
private boolean |
m_bContinue
The flag to indicate whether the main loop should continue. |
private MessageManager |
m_mmMessageManager
The reference to a Message Manager. |
private Queue |
m_qMsgQueue
The in-coming message queue of this module. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
DelayedMessageManager(ActorManager p_amActorManager,
MessageManager p_mmMessageManager,
MigrationManager p_mmMigrationManager)
Creates a Delayed Message Manager. |
Method Summary | |
protected void |
deliverMessage(ActorMessage p_amMsg)
Delivers a message between two actors. |
protected void |
init()
Processes some necessay routines before entering the while loop in the run method. |
private boolean |
processMessage(ActorMessage p_amMsg)
Processes a communication message. |
protected void |
resend()
Wakes up the curren sleeping thread. |
void |
run()
Invoked when this thread is executed. |
protected void |
uninit()
Uninitializes this program. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean m_bContinue
private Queue m_qMsgQueue
private ActorManager m_amActorManager
private MessageManager m_mmMessageManager
Constructor Detail |
public DelayedMessageManager(ActorManager p_amActorManager, MessageManager p_mmMessageManager, MigrationManager p_mmMigrationManager)
p_amActorManager
- the reference to an Actor Manager.p_mmMessageManager
- the reference to a Message Manager.p_mmMigrationManager
- the reference to a Migration Manager.Method Detail |
protected void init()
protected void uninit()
public void run()
private boolean processMessage(ActorMessage p_amMsg)
p_amMsg
- an actor communication message.protected void deliverMessage(ActorMessage p_amMsg)
p_amMsg
- an actor communication message.protected void resend()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |