Pavlin Radoslavov | 64d9e47 | 2014-10-21 22:01:08 -0700 | [diff] [blame] | 1 | package org.onlab.onos.metrics.topology; |
| 2 | |
| 3 | import java.util.List; |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame^] | 4 | import org.onlab.metrics.EventMetric; |
Pavlin Radoslavov | 5ba8b28 | 2014-10-23 01:03:10 -0700 | [diff] [blame] | 5 | import org.onlab.onos.event.Event; |
Pavlin Radoslavov | 64d9e47 | 2014-10-21 22:01:08 -0700 | [diff] [blame] | 6 | |
| 7 | /** |
| 8 | * Service interface exported by TopologyMetrics. |
| 9 | */ |
| 10 | public interface TopologyMetricsService { |
| 11 | /** |
| 12 | * Gets the last saved topology events. |
| 13 | * |
| 14 | * @return the last saved topology events. |
| 15 | */ |
Pavlin Radoslavov | 5ba8b28 | 2014-10-23 01:03:10 -0700 | [diff] [blame] | 16 | public List<Event> getEvents(); |
Pavlin Radoslavov | 64d9e47 | 2014-10-21 22:01:08 -0700 | [diff] [blame] | 17 | |
| 18 | /** |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame^] | 19 | * Gets the Event Metric for the Device Events. |
Pavlin Radoslavov | 64d9e47 | 2014-10-21 22:01:08 -0700 | [diff] [blame] | 20 | * |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame^] | 21 | * @return the Event Metric for the Device Events. |
Pavlin Radoslavov | 64d9e47 | 2014-10-21 22:01:08 -0700 | [diff] [blame] | 22 | */ |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame^] | 23 | public EventMetric topologyDeviceEventMetric(); |
Pavlin Radoslavov | 64d9e47 | 2014-10-21 22:01:08 -0700 | [diff] [blame] | 24 | |
| 25 | /** |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame^] | 26 | * Gets the Event Metric for the Host Events. |
Pavlin Radoslavov | 64d9e47 | 2014-10-21 22:01:08 -0700 | [diff] [blame] | 27 | * |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame^] | 28 | * @return the Event Metric for the Host Events. |
Pavlin Radoslavov | 64d9e47 | 2014-10-21 22:01:08 -0700 | [diff] [blame] | 29 | */ |
Pavlin Radoslavov | ccc2e33 | 2014-10-23 13:46:28 -0700 | [diff] [blame^] | 30 | public EventMetric topologyHostEventMetric(); |
| 31 | |
| 32 | /** |
| 33 | * Gets the Event Metric for the Link Events. |
| 34 | * |
| 35 | * @return the Event Metric for the Link Events. |
| 36 | */ |
| 37 | public EventMetric topologyLinkEventMetric(); |
| 38 | |
| 39 | /** |
| 40 | * Gets the Event Metric for the Topology Graph Events. |
| 41 | * |
| 42 | * @return the Event Metric for the Topology Graph Events. |
| 43 | */ |
| 44 | public EventMetric topologyGraphEventMetric(); |
Pavlin Radoslavov | 64d9e47 | 2014-10-21 22:01:08 -0700 | [diff] [blame] | 45 | } |