public interface FlowTracker
Facilitates:
When sending messages, MessageFutures are used to allow the caller
to determine the outcome of the request either synchronously or
asynchronously, at their preference.
| Modifier and Type | Method and Description |
|---|---|
List<MBodyFlowStats> |
getFlowStats(DataPathId dpid,
TableId tableId)
Returns flows installed in the specified table of the given datapath.
|
MessageFuture |
sendFlowMod(OfmFlowMod flowMod,
DataPathId dpid)
Sends the given FlowMod message to the specified datapath.
|
List<MBodyFlowStats> getFlowStats(DataPathId dpid, TableId tableId)
tableId is null) then
all tables are assumed.
If the specified table ID is TableId.ALL, all flows from all
tables will be returned.
Note that table ID is ignored for OpenFlow 1.0 devices.
Note that this is a synchronous call that blocks until all the flow statistics replies have returned from the datapath.
dpid - the datapath from which the flows are requestedtableId - the ID of the flow tableNullPointerException - if dpid is nullNotFoundException - if the specified datapath does not existMessageFuture sendFlowMod(OfmFlowMod flowMod, DataPathId dpid) throws OpenflowException
Adds the specified flow to the given datapath if the message's
command is ADD.
Deletes the specified flow from the given datapath if the message's
command is DELETE.
flowMod - the FlowMod message to senddpid - the target datapathNullPointerException - if either parameter is nullIllegalArgumentException - if flowMod is mutableNotFoundException - if the specified datapath does not existOpenflowException - if there was an issue sending the messageFlowModCommandCopyright © 2014. All Rights Reserved.