Search in sources :

Example 1 with UiTopoHighlighterFactory

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();
}
Also used : UiTopoHighlighterFactory(org.onosproject.ui.UiTopoHighlighterFactory) UiExtensionService(org.onosproject.ui.UiExtensionService)

Aggregations

UiExtensionService (org.onosproject.ui.UiExtensionService)1 UiTopoHighlighterFactory (org.onosproject.ui.UiTopoHighlighterFactory)1