|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
aa.tool.SystemThread
aa.core.MessageManager
This class delivers communication messages among actors.
History:
processMessage
method.
Field Summary | |
private ActorManager |
m_amActorManager
The reference to the Actor Manager of this actor platform. |
private ActorName |
m_anPlatform
The actor name of this actor platform. |
private DelayedMessageManager |
m_dmmDelayedMessageManager
The reference to the Delayed Message Manager of this actor platform. |
private Platform |
m_pPlatform
The reference to this actor platform. |
private TransportManager |
m_tmTransportManager
The reference to the Transport Manager of this actor platform. |
private TransportSender |
m_tsTransportSender
The reference to the Transport Sender of this actor platform. |
Fields inherited from class aa.tool.SystemThread |
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
MessageManager(Platform p_platform,
ActorManager p_amActorManager,
MigrationManager p_mmMigrationManager,
java.lang.Integer p_intPort)
Creates a Message Manager. |
Method Summary | |
protected void |
changePortNumber(java.lang.Integer p_intPort)
Changes the port number for transprot manager. |
protected void |
init()
Processes some necessay routines before entering the while loop in the run method. |
protected void |
processMessage(ActorMessage p_amMsg)
Processes a communicaiton message. |
void |
reportFailure(java.lang.String p_strMsg)
Reports the failure of server socket initiation. |
protected void |
uninit()
Uninitializes this program. |
Methods inherited from class aa.tool.SystemThread |
deliverMessage, run |
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 ActorName m_anPlatform
private Platform m_pPlatform
private ActorManager m_amActorManager
private TransportManager m_tmTransportManager
private TransportSender m_tsTransportSender
private DelayedMessageManager m_dmmDelayedMessageManager
Constructor Detail |
public MessageManager(Platform p_platform, ActorManager p_amActorManager, MigrationManager p_mmMigrationManager, java.lang.Integer p_intPort)
p_platform
- the reference to a platform.p_amActorManager
- the reference to an Actor Manager.p_mmMigrationManager
- the reference to a Migration Manager.p_intPort
- the port number of a server socket for in-coming messages.Method Detail |
protected void init()
init
in class SystemThread
protected void uninit()
protected void processMessage(ActorMessage p_amMsg)
processMessage
in class SystemThread
p_amMsg
- an actor communication message.protected void changePortNumber(java.lang.Integer p_intPort)
p_intPort
- the new port number for transport manager.public void reportFailure(java.lang.String p_strMsg)
p_strMsg
- the message for which problem happens.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |