All Packages Class Hierarchy This Package Previous Next Index
Class ProtocolLayer.IPRouterServerThread
Abstract.Connection
|
+----Abstract.ServerThread
|
+----BaseLayer.BServerThread
|
+----RouterLayer.Router.RouterServerThread
|
+----ProtocolLayer.IPRouterServerThread
- public class IPRouterServerThread
- extends RouterServerThread
IP Router server thread.
Two data members, incoming message box directiry and reservation table are added.
The run() method will accept the connection from the IPRouter clients and create
IPRouterRecvThread.
-
IPRouterServerThread()
- Default Constructor
-
IPRouterServerThread(Address, ConnectionTable, Security, String, Hashtable, OffLineAgentTable, Vector)
- Constructor
-
createReceiverThread(Socket)
- Create RouterReceiverThread and invoke start() method
-
run()
- Run method will create RouterRecvThread by accepting connection.
IPRouterServerThread
public IPRouterServerThread()
- Default Constructor
IPRouterServerThread
public IPRouterServerThread(Address myaddress,
ConnectionTable connections,
Security security,
String messageboxpath,
Hashtable reservedBook,
OffLineAgentTable offlinelist,
Vector disconnectlist) throws IOException, ConnectionException, UnknownHostException
- Constructor
- Parameters:
- myaddress - Router server address
- connections - ConnectionTable, which will be passed to the RouterRecvThread
- security - RouterSecurity
- messageboxpath - Incoming message box directory
- reservedbook - Message reservation table
- offlinelist - The off line agent name list.
- disconnectlist - The disconnected agents name list.
- Throws: IOException
- if socket error occurs
- Throws: ConnectionException
- if connection related error occurs
- Throws: UnknownHostException
- if host address is not found
run
public void run()
- Run method will create RouterRecvThread by accepting connection.
endWith character and maximum idle time will be set to the RouterRecvThread
- Overrides:
- run in class RouterServerThread
createReceiverThread
protected synchronized void createReceiverThread(Socket socket)
- Create RouterReceiverThread and invoke start() method
- Parameters:
- socket - Socket, created by the ServerSocket
All Packages Class Hierarchy This Package Previous Next Index