Interface StatisticStore


  • public interface StatisticStore
    Store to house the computed statistics.
    • Method Detail

      • prepareForStatistics

        void prepareForStatistics​(FlowRule rule)
        Lay the foundation for receiving flow stats for this rule.
        Parameters:
        rule - a FlowRule
      • 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 - a FlowEntry
      • 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