public class NewAdaptiveFlowStatsCollector extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
NO_FLOW_MISSING_XID |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrUpdateFlows(org.onosproject.net.flow.FlowEntry... flowEntries)
Adds or updates typed flow entry from flow entry into the internal flow table.
|
void |
addWithFlowRule(org.onosproject.net.flow.FlowRule... flowRules)
Adds typed flow entry from flow rule into the internal flow table.
|
void |
flowRemoved(org.onosproject.net.flow.FlowRule... flowRules)
Removes typed flow entry from the internal flow table.
|
long |
getFlowMissingXid()
Returns flowMissingXid that indicates the execution of flowMissing process or not(NO_FLOW_MISSING_XID(-1)).
|
void |
pushFlowMetrics(List<org.onosproject.net.flow.FlowEntry> flowEntries)
Adds or updates typed flow entry from flow entry into the internal flow table.
|
void |
removeFlows(org.onosproject.net.flow.FlowRule... flowRules)
Removes typed flow entry from the internal flow table.
|
void |
setFlowMissingXid(long flowMissingXid)
Sets flowMissingXid, namely OFFlowStatsRequest match any ALL message Id.
|
void |
start()
Starts adaptive flow statistic collection.
|
void |
stop()
Stops adaptive flow statistic collection.
|
public static final long NO_FLOW_MISSING_XID
public void start()
public void stop()
public void addWithFlowRule(org.onosproject.net.flow.FlowRule... flowRules)
flowRules - the flow rulespublic void addOrUpdateFlows(org.onosproject.net.flow.FlowEntry... flowEntries)
flowEntries - the flow entriespublic void removeFlows(org.onosproject.net.flow.FlowRule... flowRules)
flowRules - the flow entriespublic void flowRemoved(org.onosproject.net.flow.FlowRule... flowRules)
flowRules - the flow entriespublic void pushFlowMetrics(List<org.onosproject.net.flow.FlowEntry> flowEntries)
flowEntries - the flow entry listpublic long getFlowMissingXid()
public void setFlowMissingXid(long flowMissingXid)
flowMissingXid - the OFFlowStatsRequest message Id