Package org.onosproject.net.statistic
Interface StatisticService
- 
public interface StatisticServiceService 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 FlowRulehighestHitter(ConnectPoint connectPoint)Returns the highest hitter (a flow rule) for a given port, ie.Loadload(ConnectPoint connectPoint)Obtain the load for the given port.Loadload(Link link)Obtain the load for a the ingress to the given link.Loadload(Link link, ApplicationId appId, Optional<GroupId> groupId)Obtain the load for a the ingress to the given link used by the specified application ID and group ID.Linkmax(Path path)Find the most loaded link along a path.Linkmin(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
 
 
 - 
 
 -