|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.floodlightcontroller.routing.ForwardingBase
net.floodlightcontroller.forwarding.Forwarding
public class Forwarding
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.floodlightcontroller.core.IListener |
---|
IListener.Command |
Field Summary | |
---|---|
protected static org.slf4j.Logger |
log
|
Fields inherited from class net.floodlightcontroller.routing.ForwardingBase |
---|
appCookie, broadcastCache, broadcastCacheFeature, clusterIdComparator, counterStore, deviceManager, floodlightProvider, FLOWMOD_DEFAULT_HARD_TIMEOUT, FLOWMOD_DEFAULT_HARD_TIMEOUT_CONSTANT, FLOWMOD_DEFAULT_IDLE_TIMEOUT, FLOWMOD_DEFAULT_IDLE_TIMEOUT_CONSTANT, FORWARDING_APP_ID, messageDamper, OFMESSAGE_DAMPER_CAPACITY, OFMESSAGE_DAMPER_TIMEOUT, prime1, prime2, routingEngine, topology |
Constructor Summary | |
---|---|
Forwarding()
|
Method Summary | |
---|---|
protected void |
doDropFlow(IOFSwitch sw,
OFPacketIn pi,
IRoutingDecision decision,
FloodlightContext cntx)
|
protected void |
doFlood(IOFSwitch sw,
OFPacketIn pi,
FloodlightContext cntx)
Creates a OFPacketOut with the OFPacketIn data that is flooded on all ports unless the port is blocked, in which case the packet will be dropped. |
protected void |
doForwardFlow(IOFSwitch sw,
OFPacketIn pi,
FloodlightContext cntx,
boolean requestFlowRemovedNotifn)
|
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. |
IListener.Command |
processPacketInMessage(IOFSwitch sw,
OFPacketIn pi,
IRoutingDecision decision,
FloodlightContext cntx)
All subclasses must define this function if they want any specific forwarding action |
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 net.floodlightcontroller.routing.ForwardingBase |
---|
blockHost, getName, init, isCallbackOrderingPostreq, isCallbackOrderingPrereq, isInBroadcastCache, isInSwitchBroadcastCache, packetOutMultiPort, packetOutMultiPort, packetOutMultiPort, pushPacket, pushRoute, receive, startUp |
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
Constructor Detail |
---|
public Forwarding()
Method Detail |
---|
public IListener.Command processPacketInMessage(IOFSwitch sw, OFPacketIn pi, IRoutingDecision decision, FloodlightContext cntx)
ForwardingBase
processPacketInMessage
in class ForwardingBase
sw
- Switch that the packet came in frompi
- The packet that came indecision
- Any decision made by a policy engineprotected void doDropFlow(IOFSwitch sw, OFPacketIn pi, IRoutingDecision decision, FloodlightContext cntx)
protected void doForwardFlow(IOFSwitch sw, OFPacketIn pi, FloodlightContext cntx, boolean requestFlowRemovedNotifn)
protected void doFlood(IOFSwitch sw, OFPacketIn pi, FloodlightContext cntx)
sw
- The switch that receives the OFPacketInpi
- The OFPacketIn that came to the switchcntx
- The FloodlightContext associated with this OFPacketInpublic 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 |