Jonathan Hart | 22eb988 | 2014-02-11 15:52:59 -0800 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.networkgraph; |
| 2 | |
Pavlin Radoslavov | 018d533 | 2014-02-19 23:08:35 -0800 | [diff] [blame] | 3 | import java.util.Collection; |
| 4 | |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 5 | /** |
| 6 | * Interface used by the Topology Discovery module to write topology-related |
| 7 | * events. |
| 8 | */ |
Jonathan Hart | 22eb988 | 2014-02-11 15:52:59 -0800 | [diff] [blame] | 9 | public interface NetworkGraphDiscoveryInterface { |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 10 | /** |
| 11 | * Switch discovered event. |
| 12 | * |
| 13 | * @param switchEvent the switch event. |
Pavlin Radoslavov | 018d533 | 2014-02-19 23:08:35 -0800 | [diff] [blame] | 14 | * @param portEvents the corresponding port events for the switch. |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 15 | */ |
Pavlin Radoslavov | 018d533 | 2014-02-19 23:08:35 -0800 | [diff] [blame] | 16 | public void putSwitchDiscoveryEvent(SwitchEvent switchEvent, |
| 17 | Collection<PortEvent> portEvents); |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 18 | |
| 19 | /** |
| 20 | * Switch removed event. |
| 21 | * |
| 22 | * @param switchEvent the switch event. |
| 23 | */ |
| 24 | public void removeSwitchDiscoveryEvent(SwitchEvent switchEvent); |
| 25 | |
| 26 | /** |
| 27 | * Port discovered event. |
| 28 | * |
| 29 | * @param portEvent the port event. |
| 30 | */ |
| 31 | public void putPortDiscoveryEvent(PortEvent portEvent); |
| 32 | |
| 33 | /** |
| 34 | * Port removed event. |
| 35 | * |
| 36 | * @param portEvent the port event. |
| 37 | */ |
| 38 | public void removePortDiscoveryEvent(PortEvent portEvent); |
| 39 | |
| 40 | /** |
| 41 | * Link discovered event. |
| 42 | * |
| 43 | * @param linkEvent the link event. |
| 44 | */ |
| 45 | public void putLinkDiscoveryEvent(LinkEvent linkEvent); |
| 46 | |
| 47 | /** |
| 48 | * Link removed event. |
| 49 | * |
| 50 | * @param linkEvent the link event. |
| 51 | */ |
| 52 | public void removeLinkDiscoveryEvent(LinkEvent linkEvent); |
| 53 | |
| 54 | /** |
| 55 | * Device discovered event. |
| 56 | * |
| 57 | * @param deviceEvent the device event. |
| 58 | */ |
| 59 | public void putDeviceDiscoveryEvent(DeviceEvent deviceEvent); |
| 60 | |
| 61 | /** |
| 62 | * Device removed event. |
| 63 | * |
| 64 | * @param deviceEvent the device event. |
| 65 | */ |
| 66 | public void removeDeviceDiscoveryEvent(DeviceEvent deviceEvent); |
Jonathan Hart | 22eb988 | 2014-02-11 15:52:59 -0800 | [diff] [blame] | 67 | } |