Package org.onosproject.net.statistic
Interface FlowStatisticStore
-
public interface FlowStatisticStore
Flow Store to house the computed statistics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFlowStatistic(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.void
removeFlowStatistic(FlowRule rule)
Remove entries associated with this rule.void
updateFlowStatistic(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
-
-