|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
aa.transport.TransportManager
This class specifies Transport Manager which supports the external communication with actors in other platforms.
History:
Field Summary | |
private java.util.ArrayList |
m_alMessageReceiver
An array list for a Message Receivers. |
private boolean |
m_bDestroy
The flag to indicates whether this thread should be destroyed. |
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.net.ServerSocket |
m_srvsocket
The reference to the server socket of this actor platform. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
TransportManager(MessageManager p_mmMessageManager,
java.lang.Integer p_intPort)
Creates a Transport Manager thread. |
Method Summary | |
protected void |
deregisterTransportManager(TransportReceiver p_trMsgReceiver)
remove a Transport Receiver from the list of Transport Receivers. |
void |
destroy()
Destroys this thread. |
protected void |
init()
Processes some necessay routines before entering the while loop in the run method. |
void |
run()
Main routine to process in-coming messages. |
void |
uninit()
Uninitializes this class. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, 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_bDestroy
private int m_iPort
private java.net.ServerSocket m_srvsocket
private MessageManager m_mmMessageManager
private java.util.ArrayList m_alMessageReceiver
Constructor Detail |
public TransportManager(MessageManager p_mmMessageManager, java.lang.Integer p_intPort)
p_mmMessageManager
- the reference to Message Managerp_intPort
- the port number of a server socket for in-coming messagesMethod Detail |
protected void init()
public void uninit()
public void run()
protected void deregisterTransportManager(TransportReceiver p_trMsgReceiver)
p_trMsgReceiver
- a Transport Receiver to be removed from the list.public void destroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |