net.clackrouter.router.core
Class RouterManager
java.lang.Object
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
Constructor Summary |
RouterManager(ClackFramework framework,
java.lang.String serverName,
int serverPort,
java.lang.String username,
java.lang.String password)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RouterManager
public RouterManager(ClackFramework framework,
java.lang.String serverName,
int serverPort,
java.lang.String username,
java.lang.String password)
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