net.clackrouter.router.core
Class RouterManager

java.lang.Object
  extended by net.clackrouter.router.core.RouterManager
All Implemented Interfaces:
java.io.Serializable

public class RouterManager
extends java.lang.Object
implements java.io.Serializable

The RouterManager class handles the creation of Routers, including the attempt to reserver the VNS host. It is initialized with connection information, and its main method is the reserveVirtualHost(topoID, virtual_router_id) method, which returns an instance of the Router class.

See Also:
Serialized Form

Nested Class Summary
static class RouterManager.ConnectFrame
           
 
Constructor Summary
RouterManager(ClackFramework framework, java.lang.String serverName, int serverPort, java.lang.String username, java.lang.String password)
           
 
Method Summary
 Router connectToVNS(TopologyModel topoModel, java.lang.String host, boolean isGUI, java.lang.String username, java.lang.String auth_key)
           
 int getPort()
           
 java.lang.String getServer()
           
 Router reserveVirtualHost(TopologyModel topoModel, java.lang.String virtualRouterID, boolean isGUI, java.lang.String username, java.lang.String auth_key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouterManager

public RouterManager(ClackFramework framework,
                     java.lang.String serverName,
                     int serverPort,
                     java.lang.String username,
                     java.lang.String password)
Method Detail

getServer

public java.lang.String getServer()

getPort

public int getPort()

reserveVirtualHost

public Router reserveVirtualHost(TopologyModel topoModel,
                                 java.lang.String virtualRouterID,
                                 boolean isGUI,
                                 java.lang.String username,
                                 java.lang.String auth_key)
                          throws java.lang.Exception
Throws:
java.lang.Exception

connectToVNS

public Router connectToVNS(TopologyModel topoModel,
                           java.lang.String host,
                           boolean isGUI,
                           java.lang.String username,
                           java.lang.String auth_key)
                    throws java.lang.Exception
Throws:
java.lang.Exception