Interface StatisticService


  • public interface StatisticService
    Service for obtaining statistic information about link in the system. Statistics are obtained from the FlowRuleService in order to minimize the amount of hammering occurring at the dataplane.
    • Method Detail

      • load

        Load load​(Link link)
        Obtain the load for a the ingress to the given link.
        Parameters:
        link - the link to query.
        Returns:
        a Load
      • load

        Load load​(ConnectPoint connectPoint)
        Obtain the load for the given port.
        Parameters:
        connectPoint - the port to query
        Returns:
        a Load
      • max

        Link max​(Path path)
        Find the most loaded link along a path.
        Parameters:
        path - the path to search in
        Returns:
        the most loaded Link.
      • min

        Link min​(Path path)
        Find the least loaded link along a path.
        Parameters:
        path - the path to search in
        Returns:
        the least loaded Link.
      • highestHitter

        FlowRule highestHitter​(ConnectPoint connectPoint)
        Returns the highest hitter (a flow rule) for a given port, ie. the flow rule which is generating the most load.
        Parameters:
        connectPoint - the port
        Returns:
        the flow rule
      • load

        Load load​(Link link,
                  ApplicationId appId,
                  java.util.Optional<GroupId> groupId)
        Obtain the load for a the ingress to the given link used by the specified application ID and group ID.
        Parameters:
        link - link to query
        appId - application ID to filter with
        groupId - group ID to filter with
        Returns:
        Load