Interface FlowStatisticStore


  • public interface FlowStatisticStore
    Flow Store to house the computed statistics.
    • 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 - a FlowEntry
      • 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 - a FlowEntry
      • 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