|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.floodlightcontroller.hub.Hub
public class Hub
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.floodlightcontroller.core.IListener |
|---|
IListener.Command |
| Field Summary | |
|---|---|
protected IFloodlightProviderService |
floodlightProvider
|
protected static org.slf4j.Logger |
log
|
| Constructor Summary | |
|---|---|
Hub()
|
|
| 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.lang.String |
getName()
The name assigned to this listener |
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. |
boolean |
isCallbackOrderingPostreq(OFType type,
java.lang.String name)
Check if the module called name is a callback ordering post-requisite for this module. |
boolean |
isCallbackOrderingPrereq(OFType type,
java.lang.String name)
Check if the module called name is a callback ordering prerequisite for this module. |
IListener.Command |
receive(IOFSwitch sw,
OFMessage msg,
FloodlightContext cntx)
This is the method Floodlight uses to call listeners with OpenFlow messages |
void |
setFloodlightProvider(IFloodlightProviderService floodlightProvider)
|
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 log
protected IFloodlightProviderService floodlightProvider
| Constructor Detail |
|---|
public Hub()
| Method Detail |
|---|
public void setFloodlightProvider(IFloodlightProviderService floodlightProvider)
floodlightProvider - the floodlightProvider to setpublic java.lang.String getName()
IListener
getName in interface IListener<OFType>
public IListener.Command receive(IOFSwitch sw,
OFMessage msg,
FloodlightContext cntx)
IOFMessageListener
receive in interface IOFMessageListenersw - the OpenFlow switch that sent this messagemsg - the messagecntx - a Floodlight message context object you can use to pass
information between listeners
public boolean isCallbackOrderingPrereq(OFType type,
java.lang.String name)
IListener
isCallbackOrderingPrereq in interface IListener<OFType>type - the object type to which this appliesname - the name of the module
public boolean isCallbackOrderingPostreq(OFType type,
java.lang.String name)
IListener
isCallbackOrderingPostreq in interface IListener<OFType>type - the object type to which this appliesname - the name of the module
public java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleServices()
IFloodlightModule
getModuleServices in interface IFloodlightModulepublic java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> getServiceImpls()
IFloodlightModule
getServiceImpls in interface IFloodlightModulepublic 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 IFloodlightModuleFloodlightModuleExceptionpublic 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 | |||||||||