public class TrafficLink
extends org.onosproject.ui.topo.BiLink
LinkHighlights for showing traffic data on the topology view.| Modifier and Type | Class and Description |
|---|---|
static class |
TrafficLink.StatsType
Designates type of traffic statistics to report on a highlighted link.
|
| Constructor and Description |
|---|
TrafficLink(org.onosproject.net.LinkKey key,
org.onosproject.net.Link link)
Constructs a traffic link for the given key and initial link.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFlows(int count)
Adds the given count of flows to this traffic link.
|
void |
addLoad(org.onosproject.net.statistic.Load load)
Adds load statistics, marks the traffic link as having traffic.
|
void |
addLoad(org.onosproject.net.statistic.Load load,
double threshold)
Adds load statistics, marks the traffic link as having traffic, if the
load
rate is greater than the given threshold
(expressed in bytes per second). |
TrafficLink |
antMarch(boolean b)
Sets the ant march flag to the given value.
|
boolean |
hasTraffic()
Returns true if this link has been deemed to have enough traffic
to register on the topology view in the web UI.
|
org.onosproject.ui.topo.LinkHighlight |
highlight(Enum<?> type) |
TrafficLink |
optical(boolean b)
Sets the optical flag to the given value.
|
TrafficLink |
tagFlavor(org.onosproject.ui.topo.LinkHighlight.Flavor flavor)
Tags this traffic link with the flavor to be used in visual rendering.
|
public TrafficLink(org.onosproject.net.LinkKey key,
org.onosproject.net.Link link)
key - canonical key for this traffic linklink - first linkpublic TrafficLink optical(boolean b)
b - true if an optical linkpublic TrafficLink antMarch(boolean b)
b - true if marching ants requiredpublic TrafficLink tagFlavor(org.onosproject.ui.topo.LinkHighlight.Flavor flavor)
flavor - the flavor to tagpublic void addLoad(org.onosproject.net.statistic.Load load)
load - load to addpublic void addLoad(org.onosproject.net.statistic.Load load,
double threshold)
rate is greater than the given threshold
(expressed in bytes per second).load - load to addthreshold - threshold to register trafficpublic void addFlows(int count)
count - count of flowspublic org.onosproject.ui.topo.LinkHighlight highlight(Enum<?> type)
highlight in class org.onosproject.ui.topo.BiLinkpublic boolean hasTraffic()