public interface FlowTracker
Facilitates:
When sending messages, MessageFuture
s 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 |
sendConfirmedFlowMod(OfmFlowMod flowMod,
DataPathId dpid)
Sends the given FlowMod message to the specified datapath.
|
void |
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 existvoid sendFlowMod(OfmFlowMod flowMod, DataPathId dpid) throws OpenflowException
sendConfirmedFlowMod(com.hp.of.lib.msg.OfmFlowMod, com.hp.of.lib.dt.DataPathId)
instead.
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 messageFlowModCommand
MessageFuture sendConfirmedFlowMod(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 messageFlowModCommand
,
MessageFuture
Copyright © 2015. All Rights Reserved.