Interface FlowStatisticService


  • public interface FlowStatisticService
    Service for obtaining individual flow statistic information about device and link in the system. Basic statistics are obtained from the StatisticService
    • Method Detail

      • loadSummary

        Map<ConnectPoint,​SummaryFlowEntryWithLoad> loadSummary​(Device device)
        Obtain the summary load list for the device with the given link.
        Parameters:
        device - the Device to query.
        Returns:
        map of summary flow entry load
      • loadSummary

        SummaryFlowEntryWithLoad loadSummary​(Device device,
                                             PortNumber pNumber)
        Obtain the summary load for the device with the given link or port.
        Parameters:
        device - the Device to query.
        pNumber - the port number to query.
        Returns:
        summary flow entry load
      • loadAllByType

        Map<ConnectPoint,​List<FlowEntryWithLoad>> loadAllByType​(Device device,
                                                                      FlowEntry.FlowLiveType liveType,
                                                                      Instruction.Type instType)
        Obtain the set of the flow type and load list for the device with the given link.
        Parameters:
        device - the Device to query.
        liveType - the FlowLiveType to filter, null means no filtering .
        instType - the InstructionType to filter, null means no filtering.
        Returns:
        map of flow entry load
      • loadAllByType

        List<FlowEntryWithLoad> loadAllByType​(Device device,
                                              PortNumber pNumber,
                                              FlowEntry.FlowLiveType liveType,
                                              Instruction.Type instType)
        Obtain the flow type and load list for the device with the given link or port.
        Parameters:
        device - the Device to query.
        pNumber - the port number of the Device to query
        liveType - the FlowLiveType to filter, null means no filtering .
        instType - the InstructionType to filter, null means no filtering.
        Returns:
        list of flow entry load
      • loadTopnByType

        Map<ConnectPoint,​List<FlowEntryWithLoad>> loadTopnByType​(Device device,
                                                                       FlowEntry.FlowLiveType liveType,
                                                                       Instruction.Type instType,
                                                                       int topn)
        Obtain the set of the flow type and load topn list for the device with the given link.
        Parameters:
        device - the Device to query.
        liveType - the FlowLiveType to filter, null means no filtering .
        instType - the InstructionType to filter, null means no filtering.
        topn - the top number to filter, null means no filtering.
        Returns:
        map of flow entry load
      • loadTopnByType

        List<FlowEntryWithLoad> loadTopnByType​(Device device,
                                               PortNumber pNumber,
                                               FlowEntry.FlowLiveType liveType,
                                               Instruction.Type instType,
                                               int topn)
        Obtain the flow type and load topn list for the device with the given link or port.
        Parameters:
        device - the Device to query.
        pNumber - the port number of the Device to query
        liveType - the FlowLiveType to filter, null means no filtering .
        instType - the InstructionType to filter, null means no filtering.
        topn - the top n list entry
        Returns:
        list of flow entry load