|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.floodlightcontroller.core.module.FloodlightModuleContext
public class FloodlightModuleContext
The service registry for an IFloodlightProvider.
Field Summary | |
---|---|
protected java.util.Map<java.lang.Class<? extends IFloodlightModule>,java.util.Map<java.lang.String,java.lang.String>> |
configParams
|
protected java.util.Collection<IFloodlightModule> |
moduleSet
|
protected java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> |
serviceMap
|
Constructor Summary | |
---|---|
FloodlightModuleContext()
Creates the ModuleContext for use with this IFloodlightProvider. |
Method Summary | ||
---|---|---|
void |
addConfigParam(IFloodlightModule mod,
java.lang.String key,
java.lang.String value)
Adds a configuration parameter for a module |
|
void |
addModules(java.util.Collection<IFloodlightModule> modSet)
|
|
void |
addService(java.lang.Class<? extends IFloodlightService> clazz,
IFloodlightService service)
Adds a IFloodlightModule for this Context. |
|
java.util.Collection<IFloodlightModule> |
getAllModules()
Returns all loaded modules |
|
java.util.Collection<java.lang.Class<? extends IFloodlightService>> |
getAllServices()
Returns all loaded services |
|
java.util.Map<java.lang.String,java.lang.String> |
getConfigParams(java.lang.Class<? extends IFloodlightModule> clazz)
Gets module specific configuration parameters. |
|
java.util.Map<java.lang.String,java.lang.String> |
getConfigParams(IFloodlightModule module)
Gets module specific configuration parameters. |
|
|
getServiceImpl(java.lang.Class<T> service)
Retrieves a casted version of a module from the registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> serviceMap
protected java.util.Map<java.lang.Class<? extends IFloodlightModule>,java.util.Map<java.lang.String,java.lang.String>> configParams
protected java.util.Collection<IFloodlightModule> moduleSet
Constructor Detail |
---|
public FloodlightModuleContext()
Method Detail |
---|
public void addService(java.lang.Class<? extends IFloodlightService> clazz, IFloodlightService service)
clazz
- the service classservice
- The IFloodlightService to add to the registrypublic <T extends IFloodlightService> T getServiceImpl(java.lang.Class<T> service)
IFloodlightModuleContext
getServiceImpl
in interface IFloodlightModuleContext
public java.util.Collection<java.lang.Class<? extends IFloodlightService>> getAllServices()
IFloodlightModuleContext
getAllServices
in interface IFloodlightModuleContext
public java.util.Collection<IFloodlightModule> getAllModules()
IFloodlightModuleContext
getAllModules
in interface IFloodlightModuleContext
public void addModules(java.util.Collection<IFloodlightModule> modSet)
public java.util.Map<java.lang.String,java.lang.String> getConfigParams(IFloodlightModule module)
IFloodlightModuleContext
getConfigParams
in interface IFloodlightModuleContext
module
- The module to get the configuration parameters for
public java.util.Map<java.lang.String,java.lang.String> getConfigParams(java.lang.Class<? extends IFloodlightModule> clazz)
IFloodlightModuleContext
getConfigParams
in interface IFloodlightModuleContext
clazz
- The class of the module to get configuration parameters for
public void addConfigParam(IFloodlightModule mod, java.lang.String key, java.lang.String value)
mod
- The fully qualified module name to add the parameter tokey
- The configuration parameter keyvalue
- The configuration parameter value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |