All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class calypso.services.inet.AgentServer

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteObject
                           |
                           +----calypso.services.inet.AgentServer

public class AgentServer
extends UnicastRemoteObject
implements AgentServerInterface
The implementation of the Internet agent server

Version:
$Revision: 1.5 $
Author:
Juhana Räsänen

Constructor Index

 o AgentServer(InetAddress)
Constructs and initializes the agent server instance.

Method Index

 o getAgent(InetAddress)
Creates a new instance of the Internet agent for the calling client.
 o getRouterAddress()
Returns the IP address of the Internet router.

Constructors

 o AgentServer
 public AgentServer(InetAddress router_) throws RemoteException
Constructs and initializes the agent server instance. The agent server tries to connect to the daemon in the router.

Parameters:
router_ - IP address of the Internet router
routerPort_ - The switch port of the router

Methods

 o getAgent
 public AgentInterface getAgent(InetAddress clientIP_) throws RemoteException
Creates a new instance of the Internet agent for the calling client.

Parameters:
clientPort_ - The switch port of the client
clientIP_ - The IP address of the client
Returns:
Reference to the new Internet service agent instance
 o getRouterAddress
 public InetAddress getRouterAddress() throws RemoteException
Returns the IP address of the Internet router.

Returns:
Internet router's IP address

All Packages  Class Hierarchy  This Package  Previous  Next  Index