public interface OpenFlowController
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(OpenFlowEventListener listener)
Register a listener for OF msg events.
|
void |
addListener(OpenFlowSwitchListener listener)
Register a listener for meta events that occur to OF
devices.
|
void |
addMessageListener(OpenFlowMessageListener listener)
Register a listener for all OF msg types.
|
void |
addPacketListener(int priority,
PacketListener listener)
Register a listener for packet events.
|
OpenFlowSwitch |
getEqualSwitch(Dpid dpid)
Returns the actual equal switch for the given Dpid, if one exists.
|
Iterable<OpenFlowSwitch> |
getEqualSwitches()
Returns all equal switches known to this OF controller.
|
OpenFlowSwitch |
getMasterSwitch(Dpid dpid)
Returns the actual master switch for the given Dpid, if one exists.
|
Iterable<OpenFlowSwitch> |
getMasterSwitches()
Returns all master switches known to this OF controller.
|
OpenFlowSwitch |
getSwitch(Dpid dpid)
Returns the actual switch for the given Dpid.
|
Iterable<OpenFlowSwitch> |
getSwitches()
Returns all switches known to this OF controller.
|
void |
processPacket(Dpid dpid,
org.projectfloodlight.openflow.protocol.OFMessage msg)
Process a message and notify the appropriate listeners.
|
void |
removeEventListener(OpenFlowEventListener listener)
Unregister a listener.
|
void |
removeListener(OpenFlowSwitchListener listener)
Unregister a listener.
|
void |
removeMessageListener(OpenFlowMessageListener listener)
Unregister a listener for all OF msg types.
|
void |
removePacketListener(PacketListener listener)
Unregister a listener.
|
void |
setRole(Dpid dpid,
RoleState role)
Sets the role for a given switch.
|
void |
write(Dpid dpid,
org.projectfloodlight.openflow.protocol.OFMessage msg)
Send a message to a particular switch.
|
Iterable<OpenFlowSwitch> getSwitches()
Iterable<OpenFlowSwitch> getMasterSwitches()
Iterable<OpenFlowSwitch> getEqualSwitches()
OpenFlowSwitch getSwitch(Dpid dpid)
dpid - the switch to fetchOpenFlowSwitch getMasterSwitch(Dpid dpid)
dpid - the switch to fetchOpenFlowSwitch getEqualSwitch(Dpid dpid)
dpid - the switch to fetchvoid addListener(OpenFlowSwitchListener listener)
listener - the listener to notifyvoid removeListener(OpenFlowSwitchListener listener)
listener - the listener to unregistervoid addMessageListener(OpenFlowMessageListener listener)
listener - the listener to notifyvoid removeMessageListener(OpenFlowMessageListener listener)
listener - the listener to notifyvoid addPacketListener(int priority,
PacketListener listener)
priority - the importance of this listener, lower values are more importantlistener - the listener to notifyvoid removePacketListener(PacketListener listener)
listener - the listener to unregistervoid addEventListener(OpenFlowEventListener listener)
listener - the listener to notifyvoid removeEventListener(OpenFlowEventListener listener)
listener - the listener to unregistervoid write(Dpid dpid, org.projectfloodlight.openflow.protocol.OFMessage msg)
dpid - the switch to send to.msg - the message to sendvoid processPacket(Dpid dpid, org.projectfloodlight.openflow.protocol.OFMessage msg)
dpid - the dpid the message arrived onmsg - the message to process.