Package org.onosproject.net.statistic
Interface StatisticStore
-
public interface StatisticStore
Store to house the computed statistics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addOrUpdateStatistic(FlowEntry rule)
Adds a stats observation for a flow rule.Set<FlowEntry>
getCurrentStatistic(ConnectPoint connectPoint)
Fetches the current observed stats values.Set<FlowEntry>
getPreviousStatistic(ConnectPoint connectPoint)
Fetches the previous observed stats values.void
prepareForStatistics(FlowRule rule)
Lay the foundation for receiving flow stats for this rule.void
removeFromStatistics(FlowRule rule)
Remove entries associated with this rule.
-
-
-
Method Detail
-
prepareForStatistics
void prepareForStatistics(FlowRule rule)
Lay the foundation for receiving flow stats for this rule.- Parameters:
rule
- aFlowRule
-
removeFromStatistics
void removeFromStatistics(FlowRule rule)
Remove entries associated with this rule.- Parameters:
rule
-FlowRule
-
addOrUpdateStatistic
void addOrUpdateStatistic(FlowEntry rule)
Adds a stats observation for a flow rule.- Parameters:
rule
- aFlowEntry
-
getCurrentStatistic
Set<FlowEntry> getCurrentStatistic(ConnectPoint connectPoint)
Fetches the current observed stats values.- Parameters:
connectPoint
- the port to fetch information for- Returns:
- set of current flow rules
-
getPreviousStatistic
Set<FlowEntry> getPreviousStatistic(ConnectPoint connectPoint)
Fetches the previous observed stats values.- Parameters:
connectPoint
- the port to fetch information for- Returns:
- set of current values
-
-