Package org.onosproject.net.statistic
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FlowRule
highestHitter(ConnectPoint connectPoint)
Returns the highest hitter (a flow rule) for a given port, ie.Load
load(ConnectPoint connectPoint)
Obtain the load for the given port.Load
load(Link link)
Obtain the load for a the ingress to the given link.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.Link
max(Path path)
Find the most loaded link along a path.Link
min(Path path)
Find the least loaded link along a path.
-
-
-
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 queryappId
- application ID to filter withgroupId
- group ID to filter with- Returns:
Load
-
-