public class Router
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addThreadContext(java.lang.ThreadGroup threadG)
Add router thread context info.
|
ApplicationResponse |
appStart(java.lang.String commandstr)
Start an App.
|
ApplicationResponse |
appStop(java.lang.String commandstr)
Stop an App.
|
void |
closePort(RouterPort port)
Close port.
|
boolean |
echo(Address addr)
Try to echo to a router with a given id
|
NetIF |
findNetIF(java.lang.String name)
Find a NetIF by name.
|
Address |
getAddress()
Get the router address.
|
int |
getConnectionPort()
Get the port for the connection port
|
NetIFListener |
getListener()
get listener
|
NetIF |
getLocalNetIF()
Get the local NetIF that has the sockets.
|
int |
getManagementConsolePort()
Get the port for the ManagementConsole.
|
java.lang.String |
getName()
Get the name of this Router.
|
RouterPort |
getPort(int p)
Get port N.
|
RouterController |
getRouterController()
Get the controller.
|
RouterFabric |
getRouterFabric()
Get the fabric.
|
RoutingTable |
getRoutingTable()
Get the routing table
|
boolean |
isActive()
Is the router active
|
java.util.List<NetIF> |
listNetIF() |
java.util.List<RouterPort> |
listPorts()
Get a list of all the ports with Network Interfaces.
|
static void |
main(java.lang.String[] argss)
Main entry point
|
boolean |
ping(Address addr)
Try to ping router with a given id
|
RouterPort |
plugInNetIF(NetIF netIF)
Plug in a NetIF to the Router.
|
boolean |
readOptionsFile(java.lang.String fName)
Read a file containing router options
|
boolean |
readOptionsString(java.lang.String str)
Read a string containing router options
|
void |
removeNetIF(NetIF n)
Remove a network interface from the router
|
void |
removeThreadContext(java.lang.ThreadGroup threadG)
Remove router thread context info.
|
void |
sendGoodbye()
Send goodbye message to all interfaces
|
boolean |
setAddress(Address addr)
Set the router address.
|
boolean |
setName(java.lang.String name)
Set the name of this RouterController.
|
boolean |
setNetIFWeight(java.lang.String name,
int weight)
Set the netIF weight associated with a link to a certain router name
|
void |
shutDown() |
public void sendGoodbye()
public void shutDown()
public boolean isActive()
public RouterController getRouterController()
public RouterFabric getRouterFabric()
public ApplicationResponse appStart(java.lang.String commandstr)
public ApplicationResponse appStop(java.lang.String commandstr)
public java.lang.String getName()
public boolean setName(java.lang.String name)
public Address getAddress()
public boolean setAddress(Address addr)
public NetIFListener getListener()
public RoutingTable getRoutingTable()
public RouterPort plugInNetIF(NetIF netIF)
public int getManagementConsolePort()
public int getConnectionPort()
public boolean ping(Address addr)
public boolean echo(Address addr)
public NetIF findNetIF(java.lang.String name)
public boolean setNetIFWeight(java.lang.String name, int weight)
public NetIF getLocalNetIF()
public RouterPort getPort(int p)
public java.util.List<RouterPort> listPorts()
public void closePort(RouterPort port)
public void addThreadContext(java.lang.ThreadGroup threadG)
public void removeThreadContext(java.lang.ThreadGroup threadG)
public void removeNetIF(NetIF n)
public boolean readOptionsString(java.lang.String str)
public java.util.List<NetIF> listNetIF()
public boolean readOptionsFile(java.lang.String fName)
public static void main(java.lang.String[] argss)
User Space Routing 0.10.3