All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class RouterLayer.Router.RegistrarServerThread

Abstract.Connection
   |
   +----Abstract.ServerThread
           |
           +----BaseLayer.BServerThread
                   |
                   +----RouterLayer.Router.RegistrarServerThread

public class RegistrarServerThread
extends BServerThread
Registrar server thread. The Router has two server socket, one for registration and one for message passing The RegistrarServerThread is accepting the connection and generate RouterRecvThread to get registration information.

See Also:
RegistrarRecvThread

Constructor Index

 o RegistrarServerThread()
Default constructor
 o RegistrarServerThread(Address, Address, ConnectionTable, MessageBuffer, Security)
Constructor using Address object

Method Index

 o run()
Run method override Accept the connection for registration and create RegistrarRecvThread

Constructors

 o RegistrarServerThread
 public RegistrarServerThread()
Default constructor

 o RegistrarServerThread
 public RegistrarServerThread(Address routeraddress,
                              Address registraraddress,
                              ConnectionTable connections,
                              MessageBuffer mesg,
                              Security security) throws ConnectionException, UnknownHostException, IOException
Constructor using Address object

Parameters:
routeraddress - Address object which contains the router address
registraraddress - Address object which contains the registrar address
connections - connection table
mesg - the message queue. Nornmally null
security - RegistrarSecurity
Throws: ConnectionException
if connection error occurs
Throws: UnknownHostExceptoin
if host unknown
Throws: IOException
if io error occurs.

Methods

 o run
 public void run()
Run method override Accept the connection for registration and create RegistrarRecvThread

Overrides:
run in class BServerThread

All Packages  Class Hierarchy  This Package  Previous  Next  Index