|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFloodlightModule
Defines an interface for loadable Floodlight modules. At a high level, these functions are called in the following order:
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleServices()
java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> getServiceImpls()
java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleDependencies()
void init(FloodlightModuleContext context) throws FloodlightModuleException
context
-
FloodlightModuleException
void startUp(FloodlightModuleContext context) throws FloodlightModuleException
context
-
FloodlightModuleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |