Package org.onosproject.net.statistic
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<ConnectPoint,java.util.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.java.util.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.java.util.Map<ConnectPoint,SummaryFlowEntryWithLoad>
loadSummary(Device device)
Obtain the summary load list for the device with the given link.SummaryFlowEntryWithLoad
loadSummary(Device device, PortNumber pNumber)
Obtain the summary load for the device with the given link or port.java.util.Map<ConnectPoint,java.util.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.java.util.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.
-
-
-
Method Detail
-
loadSummary
java.util.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
java.util.Map<ConnectPoint,java.util.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
java.util.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 queryliveType
- the FlowLiveType to filter, null means no filtering .instType
- the InstructionType to filter, null means no filtering.- Returns:
- list of flow entry load
-
loadTopnByType
java.util.Map<ConnectPoint,java.util.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
java.util.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 queryliveType
- 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
-
-