public interface IOFSwitchService extends IFloodlightService
Modifier and Type | Method and Description |
---|---|
void |
addOFSwitchDriver(java.lang.String manufacturerDescriptionPrefix,
IOFSwitchDriver driver)
Add a switch driver
|
void |
addOFSwitchListener(IOFSwitchListener listener)
Add a switch listener
|
IOFSwitch |
getActiveSwitch(org.projectfloodlight.openflow.types.DatapathId dpid)
If the switch with the given DPID is known to any controller in the
cluster, this method returns the associated IOFSwitch instance.
|
java.util.Set<org.projectfloodlight.openflow.types.DatapathId> |
getAllSwitchDpids()
Returns a snapshot of the set DPIDs for all known switches.
|
java.util.Map<org.projectfloodlight.openflow.types.DatapathId,IOFSwitch> |
getAllSwitchMap()
Get's the switch map stored in the switch manager
|
IOFSwitch |
getSwitch(org.projectfloodlight.openflow.types.DatapathId dpid)
If the switch with the given DPID is known to any controller in the
cluster, this method returns the associated IOFSwitch instance.
|
java.util.List<OFSwitchHandshakeHandler> |
getSwitchHandshakeHandlers()
Gets an immutable list of handshake handlers.
|
void |
registerHandshakePlugin(IAppHandshakePluginFactory plugin)
Registers an app handshake plugin to be used during switch handshaking.
|
void |
registerLogicalOFMessageCategory(LogicalOFMessageCategory category)
Registers a logical OFMessage category to be used by an application
|
void |
removeOFSwitchListener(IOFSwitchListener listener)
Remove a switch listener
|
java.util.Map<org.projectfloodlight.openflow.types.DatapathId,IOFSwitch> getAllSwitchMap()
IOFSwitch getSwitch(org.projectfloodlight.openflow.types.DatapathId dpid)
dpid
- the dpid of the switch to queryIOFSwitch getActiveSwitch(org.projectfloodlight.openflow.types.DatapathId dpid)
dpid
- the dpid of the switch to queryvoid addOFSwitchListener(IOFSwitchListener listener)
listener
- The module that wants to listen for eventsvoid addOFSwitchDriver(java.lang.String manufacturerDescriptionPrefix, IOFSwitchDriver driver)
manufacturerDescriptionPrefix
- driver
- void removeOFSwitchListener(IOFSwitchListener listener)
listener
- The The module that no longer wants to listen for eventsvoid registerLogicalOFMessageCategory(LogicalOFMessageCategory category)
category
- the logical OFMessage categoryvoid registerHandshakePlugin(IAppHandshakePluginFactory plugin)
plugin
- the app handshake plugin to be used during switch handshaking.java.util.Set<org.projectfloodlight.openflow.types.DatapathId> getAllSwitchDpids()
#getSwitch(long)
for what "known" switch is.java.util.List<OFSwitchHandshakeHandler> getSwitchHandshakeHandlers()