|
|||||||||||
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.transport.TransportSender
This class specifies Transport Sender to handle out-going messages.
History:
Field Summary | |
private java.util.ArrayList |
m_alSocket
An array list for socket opened to send messages to actors in other platforms. |
private ActorName |
m_anPlatform
The actor name of this actor platform. |
private int |
m_iPort
The port number of the server socket of this actor platform. |
private MessageManager |
m_mmMessageManager
The reference to a Message Manager. |
private java.util.TreeMap |
m_tmOOS
A tree map for object output streams. |
Fields inherited from class aa.tool.SystemThread |
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
TransportSender(ActorName p_anPlatform,
MessageManager p_mmMessageManager,
java.lang.Integer p_intPort)
Creates a Transport Sender thread. |
Method Summary | |
void |
changePortNumber(java.lang.Integer p_intPort)
Changes the port number for transprot manager. |
private void |
closeAll()
Closes object output streams and sockets. |
protected void |
init()
Processes some necessay routines before entering the while loop in the run method . |
protected void |
processMessage(ActorMessage p_amMsg)
Processes a message. |
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 int m_iPort
private MessageManager m_mmMessageManager
private java.util.ArrayList m_alSocket
private java.util.TreeMap m_tmOOS
Constructor Detail |
public TransportSender(ActorName p_anPlatform, MessageManager p_mmMessageManager, java.lang.Integer p_intPort)
p_mmMessageManager
- the reference to a Message Manager.p_intPort
- the port number of a server socket for out-going messages.Method Detail |
protected void init()
init
in class SystemThread
public void uninit()
protected void processMessage(ActorMessage p_amMsg)
processMessage
in class SystemThread
p_amMsg
- a communication message.private void closeAll()
public void changePortNumber(java.lang.Integer p_intPort)
p_intPort
- a new port number for transport manager.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |