public class NetIFStatsCumulativeReporter extends java.lang.Object implements eu.reservoir.monitoring.core.Reporter, RouterDeletedNotification, TrafficInfo
Constructor and Description |
---|
NetIFStatsCumulativeReporter(GlobalController gc)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected long |
calculateTotalTraffic()
Caluclaute total traffic.
|
protected int |
calculateTraffic(eu.reservoir.monitoring.core.table.Table table)
Calculate the traffic for a router
|
java.util.List<java.lang.Object> |
getTraffic(java.lang.String routerSrc,
java.lang.String routerDst)
Get the traffic for a link Router-i to Router-j
|
void |
report(eu.reservoir.monitoring.core.Measurement m)
This collects each measurement and processes it.
|
void |
routerDeleted(java.lang.String routerName)
Tell this reporter that a router has been deleted
|
public NetIFStatsCumulativeReporter(GlobalController gc)
public void report(eu.reservoir.monitoring.core.Measurement m)
report
in interface eu.reservoir.monitoring.core.Reporter
public java.util.List<java.lang.Object> getTraffic(java.lang.String routerSrc, java.lang.String routerDst)
getTraffic
in interface TrafficInfo
routerSrc
- the name of source routerrouterDst
- the name of dest routerpublic void routerDeleted(java.lang.String routerName)
routerDeleted
in interface RouterDeletedNotification
protected int calculateTraffic(eu.reservoir.monitoring.core.table.Table table)
protected long calculateTotalTraffic()
User Space Routing 0.10.3