public class VimNem extends GlobalController
Constructor and Description |
---|
VimNem()
Construct a VimNEM
|
VimNem(umf.common.nem.NEMSkin skin,
int port)
Construct a VimNEM with a skin
|
Modifier and Type | Method and Description |
---|---|
us.monoid.json.JSONObject |
evaluateKnowledgeBlockKey(java.lang.String key)
Call a function with a key
|
us.monoid.json.JSONObject |
findAppInfoAsJSON(int appID)
Find some app info, given an app ID
and returns a JSONObject.
|
us.monoid.json.JSONObject |
findLinkInfoAsJSON(int linkID)
Find link info
and return a JSONObject
|
us.monoid.json.JSONObject |
findRouterInfoAsJSON(int routerID)
Find some router info, given a router address or a router name
and return a JSONObject
|
us.monoid.json.JSONObject |
getAllLinkInfoAsJSON(java.lang.String detail)
List all LinkInfo as a JSONObject
|
us.monoid.json.JSONObject |
getAllRouterInfoAsJSON(java.lang.String detail)
List all RouterInfo as a JSON object
|
us.monoid.json.JSONObject |
getRouterLinkStatsAsJSON(int routerID)
Get router stats info, given a router address
and return a JSONObject
|
us.monoid.json.JSONObject |
getRouterLinkStatsAsJSON(int routerID,
int dstID)
Get router stats info, given a router address and a destination router
and return a JSONObject
|
protected void |
informAllLinks()
Called to give a snapshot of all the links
|
protected void |
informAllRouters()
Called to give a snapshot of all the routers
|
protected void |
informRouterEnded(us.monoid.json.JSONObject routerAttrs)
Called after a router is ended.
|
protected void |
informRouterStarted(us.monoid.json.JSONObject routerAttrs)
Called after a router is started.
|
protected boolean |
init()
Basic intialisation for the global controller
|
us.monoid.json.JSONObject |
listShutdownRoutersAsJSON()
List all shutdown routers
|
static void |
main(java.lang.String[] args)
Main entry point if the NEM is started from the command line.
|
protected void |
setKnowledgeInterfaces(uself.common.know.kinterface.KnowledgeInterfaces k)
Set the KnowledgeInterfaces
|
protected int |
setupListenPort()
Setup the port for this GlobalController
|
protected void |
shutDown() |
protected void |
startConsole()
Start the console.
|
protected void |
stopConsole()
Stop the console.
|
aliveMessage, APControllerUpdate, appStart, appStop, apSet, checkIsolated, checkIsolated, checkTrafficOutputRequests, compileRouterStats, connectNetwork, connectNetwork, elapsedToString, endLink, endRouter, findAppInfo, findByInterface, findByLabel, findLinkInfo, findLinkInfoByRouter, findRouterInfo, findRouterInfo, followEvent, gcFollowEvent, gcPreceedEvent, getAllLinkInfo, getAllRouterInfo, getAP, getAPController, getAPs, getEventTime, getLinkCosts, getLinkCount, getLinkWeight, getLocalHostInfo, getManagementConsole, getMaxRouterId, getName, getNoRouters, getOptions, getOutLinks, getPort, getReporterList, getRouterCount, getRouterId, getRouterList, getRouterStats, getShutdownRouters, getSimulationCurrentTime, getSimulationElapsedTime, getSimulationStartTime, getStartTime, getTrafficLinkCounts, isConnected, isLatticeMonitoring, isValidAppID, isValidLinkID, isValidRouterID, onRouter, preceedEvent, receiveRouterStats, reportAP, requestRouterStats, setAP, setLinkCosts, setLinkWeight, setListenPort, setOutLinks, setStartupFile, shutDownCommand, start, startLink, startMonitoringConsumer, startMonitoringProducer, startRouter, stopMonitoringConsumer, stopMonitoringProducer, waitUntil, wakeWait
public VimNem()
public VimNem(umf.common.nem.NEMSkin skin, int port)
protected int setupListenPort()
GlobalController
setupListenPort
in class GlobalController
protected boolean init()
GlobalController
init
in class GlobalController
protected void shutDown()
shutDown
in class GlobalController
protected void startConsole()
startConsole
in class GlobalController
protected void stopConsole()
stopConsole
in class GlobalController
protected void setKnowledgeInterfaces(uself.common.know.kinterface.KnowledgeInterfaces k)
public us.monoid.json.JSONObject evaluateKnowledgeBlockKey(java.lang.String key)
protected void informRouterStarted(us.monoid.json.JSONObject routerAttrs) throws us.monoid.json.JSONException
informRouterStarted
in class GlobalController
us.monoid.json.JSONException
protected void informRouterEnded(us.monoid.json.JSONObject routerAttrs) throws us.monoid.json.JSONException
informRouterEnded
in class GlobalController
us.monoid.json.JSONException
protected void informAllRouters()
informAllRouters
in class GlobalController
protected void informAllLinks()
informAllLinks
in class GlobalController
public us.monoid.json.JSONObject findRouterInfoAsJSON(int routerID) throws us.monoid.json.JSONException
findRouterInfoAsJSON
in class GlobalController
us.monoid.json.JSONException
public us.monoid.json.JSONObject listShutdownRoutersAsJSON() throws us.monoid.json.JSONException
listShutdownRoutersAsJSON
in class GlobalController
us.monoid.json.JSONException
public us.monoid.json.JSONObject getAllRouterInfoAsJSON(java.lang.String detail) throws us.monoid.json.JSONException
getAllRouterInfoAsJSON
in class GlobalController
us.monoid.json.JSONException
public us.monoid.json.JSONObject findLinkInfoAsJSON(int linkID) throws us.monoid.json.JSONException
findLinkInfoAsJSON
in class GlobalController
us.monoid.json.JSONException
public us.monoid.json.JSONObject getAllLinkInfoAsJSON(java.lang.String detail) throws us.monoid.json.JSONException
getAllLinkInfoAsJSON
in class GlobalController
us.monoid.json.JSONException
public us.monoid.json.JSONObject findAppInfoAsJSON(int appID) throws us.monoid.json.JSONException
findAppInfoAsJSON
in class GlobalController
us.monoid.json.JSONException
public us.monoid.json.JSONObject getRouterLinkStatsAsJSON(int routerID) throws us.monoid.json.JSONException
getRouterLinkStatsAsJSON
in class GlobalController
us.monoid.json.JSONException
public us.monoid.json.JSONObject getRouterLinkStatsAsJSON(int routerID, int dstID) throws us.monoid.json.JSONException
getRouterLinkStatsAsJSON
in class GlobalController
us.monoid.json.JSONException
public static void main(java.lang.String[] args)
User Space Routing 0.10.3