public class RouterEnv
extends java.lang.Object
Constructor and Description |
---|
RouterEnv(int port)
Construct a Router listening on a specified port for the
management console and on port+1 for the Router to Router
connections.
|
RouterEnv(int mPort,
int r2rPort)
Construct a Router listening on a specified port for the
management console and on a specified for the Router to Router
connections.
|
RouterEnv(int mPort,
int r2rPort,
java.lang.String name)
Construct a Router listening on a specified port for the
management console and on a specified for the Router to Router
connections, plus a given name.
|
RouterEnv(int mPort,
int r2rPort,
java.lang.String name,
Address address)
Construct a Router listening on a specified port for the
management console and on a specified for the Router to Router
connections, plus a given name.
|
RouterEnv(int port,
java.lang.String name)
Construct a Router listening on a specified port for the
management console and on port+1 for the Router to Router
connections, plus a given name.
|
Modifier and Type | Method and Description |
---|---|
Router |
getRouter()
Get the Router from Environment
|
RouterInteractor |
getRouterInteractor()
Get a RouterInteractor into the Environment
|
boolean |
isActive()
Is the router active yet
|
boolean |
stop()
Stop the Router and end the Environment
|
public RouterEnv(int port)
port
- the port for the management consolepublic RouterEnv(int port, java.lang.String name)
port
- the port for the management consolename
- the name of the routerpublic RouterEnv(int mPort, int r2rPort)
mPort
- the port for the management consoler2rPort
- the port for Router to Router connectionspublic RouterEnv(int mPort, int r2rPort, java.lang.String name)
mPort
- the port for the management consoler2rPort
- the port for Router to Router connectionsname
- the name of the routerpublic RouterEnv(int mPort, int r2rPort, java.lang.String name, Address address)
mPort
- the port for the management consoler2rPort
- the port for Router to Router connectionsname
- the name of the routeraddress
- the Address of the Routerpublic boolean stop()
public Router getRouter()
public RouterInteractor getRouterInteractor() throws java.io.IOException
java.io.IOException
public boolean isActive()
User Space Routing 0.10.3