|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.floodlightcontroller.restserver.RestApiServer
public class RestApiServer
Nested Class Summary | |
---|---|
protected class |
RestApiServer.RestApplication
|
Field Summary | |
---|---|
protected FloodlightModuleContext |
fmlContext
|
protected static org.slf4j.Logger |
logger
|
protected java.lang.String |
restHost
|
protected java.util.List<RestletRoutable> |
restlets
|
protected int |
restPort
|
Constructor Summary | |
---|---|
RestApiServer()
|
Method Summary | |
---|---|
void |
addRestletRoutable(RestletRoutable routable)
Adds a REST API |
java.util.Collection<java.lang.Class<? extends IFloodlightService>> |
getModuleDependencies()
Get a list of Modules that this module depends on. |
java.util.Collection<java.lang.Class<? extends IFloodlightService>> |
getModuleServices()
Return the list of interfaces that this module implements. |
java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> |
getServiceImpls()
Instantiate (as needed) and return objects that implement each of the services exported by this module. |
void |
init(FloodlightModuleContext context)
This is a hook for each module to do its internal initialization, e.g., call setService(context.getService("Service")) All module dependencies are resolved when this is called, but not every module is initialized. |
void |
run()
Runs the REST API server |
void |
startUp(FloodlightModuleContext Context)
This is a hook for each module to do its external initializations, e.g., register for callbacks or query for state in other modules It is expected that this function will not block and that modules that want non-event driven CPU will spawn their own threads. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.slf4j.Logger logger
protected java.util.List<RestletRoutable> restlets
protected FloodlightModuleContext fmlContext
protected java.lang.String restHost
protected int restPort
Constructor Detail |
---|
public RestApiServer()
Method Detail |
---|
public void addRestletRoutable(RestletRoutable routable)
IRestApiService
addRestletRoutable
in interface IRestApiService
public void run()
IRestApiService
run
in interface IRestApiService
public java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleServices()
IFloodlightModule
getModuleServices
in interface IFloodlightModule
public java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> getServiceImpls()
IFloodlightModule
getServiceImpls
in interface IFloodlightModule
public java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleDependencies()
IFloodlightModule
getModuleDependencies
in interface IFloodlightModule
public void init(FloodlightModuleContext context) throws FloodlightModuleException
IFloodlightModule
init
in interface IFloodlightModule
FloodlightModuleException
public void startUp(FloodlightModuleContext Context)
IFloodlightModule
startUp
in interface IFloodlightModule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |