Package org.onosproject.net.statistic
Interface FlowStatisticStore
-
public interface FlowStatisticStoreFlow Store to house the computed statistics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFlowStatistic(FlowEntry rule)Adds a flow stats observation for a flow rule.Set<FlowEntry>getCurrentFlowStatistic(ConnectPoint connectPoint)Fetches the current observed flow stats values.Set<FlowEntry>getPreviousFlowStatistic(ConnectPoint connectPoint)Fetches the current observed flow stats values.voidremoveFlowStatistic(FlowRule rule)Remove entries associated with this rule.voidupdateFlowStatistic(FlowEntry rule)Updates a stats observation for a flow rule.
-
-
-
Method Detail
-
removeFlowStatistic
void removeFlowStatistic(FlowRule rule)
Remove entries associated with this rule.- Parameters:
rule-FlowRule
-
addFlowStatistic
void addFlowStatistic(FlowEntry rule)
Adds a flow stats observation for a flow rule. The previous flow will be removed.- Parameters:
rule- aFlowEntry
-
updateFlowStatistic
void updateFlowStatistic(FlowEntry rule)
Updates a stats observation for a flow rule. The old flow stats will be moved to previous stats.- Parameters:
rule- aFlowEntry
-
getCurrentFlowStatistic
Set<FlowEntry> getCurrentFlowStatistic(ConnectPoint connectPoint)
Fetches the current observed flow stats values.- Parameters:
connectPoint- the port to fetch information for- Returns:
- set of current flow rules
-
getPreviousFlowStatistic
Set<FlowEntry> getPreviousFlowStatistic(ConnectPoint connectPoint)
Fetches the current observed flow stats values.- Parameters:
connectPoint- the port to fetch information for- Returns:
- set of current values
-
-