public class TrafficMonitor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TrafficMonitor.Mode
Designates the different modes of operation.
|
| Constructor and Description |
|---|
TrafficMonitor(long trafficPeriod,
ServicesBundle servicesBundle,
TopologyViewMessageHandler msgHandler)
Constructs a traffic monitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
monitor(org.onosproject.net.intent.Intent intent)
Monitor for traffic data to be sent back to the web client, for the
given intent.
|
void |
monitor(TrafficMonitor.Mode mode)
Monitor for traffic data to be sent back to the web client, under
the given mode.
|
void |
monitor(TrafficMonitor.Mode mode,
org.onosproject.ui.topo.NodeSelection nodeSelection)
Monitor for traffic data to be sent back to the web client, under
the given mode, using the given selection of devices and hosts.
|
void |
pokeIntent()
Resends selected intent traffic data.
|
void |
selectNextIntent()
Selects the next intent in the select group (if there is one),
and sends highlighting data back to the web client to display
which path is selected.
|
void |
selectPreviousIntent()
Selects the previous intent in the select group (if there is one),
and sends highlighting data back to the web client to display
which path is selected.
|
void |
stopMonitoring()
Stop all traffic monitoring.
|
public TrafficMonitor(long trafficPeriod,
ServicesBundle servicesBundle,
TopologyViewMessageHandler msgHandler)
trafficPeriod - traffic task period in msservicesBundle - bundle of servicesmsgHandler - our message handlerpublic void monitor(TrafficMonitor.Mode mode)
The monitoring mode is expected to be one of:
mode - monitoring modepublic void monitor(TrafficMonitor.Mode mode, org.onosproject.ui.topo.NodeSelection nodeSelection)
The monitoring mode is expected to be one of:
mode - monitoring modenodeSelection - how to select a nodepublic void monitor(org.onosproject.net.intent.Intent intent)
intent - the intent to monitorpublic void selectNextIntent()
public void selectPreviousIntent()
public void pokeIntent()
public void stopMonitoring()
Copyright © 2015. All rights reserved.