use of org.onosproject.ui.UiTopoHighlighterFactory in project onos by opennetworkinglab.
the class TrafficMonitorBase method monitor.
public synchronized void monitor(int index) {
mode = CUSTOM_TRAFFIC_MONITOR;
List<UiTopoHighlighterFactory> factories = services.get(UiExtensionService.class).getTopoHighlighterFactories();
if (factories.isEmpty()) {
return;
}
UiTopoHighlighterFactory factory = factories.get(index % factories.size());
topoHighlighter = factory.newTopoHighlighter();
clearSelection();
scheduleTask();
sendCustomTraffic();
}
Aggregations