public class GlobalControllerInteractor
extends java.lang.Object
Constructor and Description |
---|
GlobalControllerInteractor(java.net.InetAddress addr,
int port)
Constructor for a MCRP connection
to the ManagementConsole of a GlobalController.
|
GlobalControllerInteractor(LocalHostInfo lh)
Constructor for a MCRP connection
to the ManagementConsole of a GlobalController.
|
GlobalControllerInteractor(java.lang.String addr,
int port)
Constructor for a MCRP connection
to the ManagementConsole of a GlobalController.
|
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Get the port this LocalControllerInteractor is connecting to
|
java.lang.String |
networkGraph(java.lang.String arg)
Get the networkGraph as a String representation.
|
java.lang.Boolean |
quit()
Quit talking to the router
Close a connection to the ManagementConsole of the router.
|
java.lang.Boolean |
reportAP(int GID,
int AP)
Send a message to a local controller informing it about a routers
status as an aggregation point
|
java.lang.Boolean |
respondToGlobalController(LocalHostInfo lc)
Responds to the GlobalController.
|
java.lang.Boolean |
sendRouterStats(java.lang.String stats)
Sends collected router stats to the global controller
|
public GlobalControllerInteractor(java.lang.String addr, int port) throws java.net.UnknownHostException, java.io.IOException
addr
- the name of the hostport
- the port the server is listening onjava.net.UnknownHostException
java.io.IOException
public GlobalControllerInteractor(java.net.InetAddress addr, int port) throws java.net.UnknownHostException, java.io.IOException
addr
- the InetAddress of the hostport
- the port the server is listening onjava.net.UnknownHostException
java.io.IOException
public GlobalControllerInteractor(LocalHostInfo lh) throws java.net.UnknownHostException, java.io.IOException
lh
- the LocalHostInfo descriptionjava.net.UnknownHostException
java.io.IOException
public int getPort()
public java.lang.Boolean respondToGlobalController(LocalHostInfo lc) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public java.lang.Boolean sendRouterStats(java.lang.String stats) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public java.lang.Boolean quit() throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public java.lang.Boolean reportAP(int GID, int AP) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public java.lang.String networkGraph(java.lang.String arg) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
User Space Routing 0.10.3