Jonathan Hart | 472062d | 2014-04-03 10:56:48 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.topology; |
Jonathan Hart | 22eb988 | 2014-02-11 15:52:59 -0800 | [diff] [blame] | 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 | e37e4e2 | 2014-05-13 19:12:02 -0700 | [diff] [blame] | 9 | public interface TopologyDiscoveryInterface { |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 10 | /** |
| 11 | * Switch discovered event. |
| 12 | * |
| 13 | * @param switchEvent the switch event. |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [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, |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 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 | /** |
Yuta HIGUCHI | bfc77f0 | 2014-07-14 22:50:25 -0700 | [diff] [blame] | 55 | * Host discovered event. |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 56 | * |
Pavlin Radoslavov | 695f895 | 2014-07-23 16:57:01 -0700 | [diff] [blame] | 57 | * @param hostEvent the host event. |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 58 | */ |
Yuta HIGUCHI | bfc77f0 | 2014-07-14 22:50:25 -0700 | [diff] [blame] | 59 | public void putHostDiscoveryEvent(HostEvent hostEvent); |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 60 | |
| 61 | /** |
Yuta HIGUCHI | bfc77f0 | 2014-07-14 22:50:25 -0700 | [diff] [blame] | 62 | * Host removed event. |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 63 | * |
Pavlin Radoslavov | 695f895 | 2014-07-23 16:57:01 -0700 | [diff] [blame] | 64 | * @param hostEvent the host event. |
Pavlin Radoslavov | 6ea84a4 | 2014-02-19 15:50:01 -0800 | [diff] [blame] | 65 | */ |
Yuta HIGUCHI | bfc77f0 | 2014-07-14 22:50:25 -0700 | [diff] [blame] | 66 | public void removeHostDiscoveryEvent(HostEvent hostEvent); |
Pavlin Radoslavov | 695f895 | 2014-07-23 16:57:01 -0700 | [diff] [blame] | 67 | |
| 68 | /** |
| 69 | * Switch Mastership updated event. |
| 70 | * |
| 71 | * @param mastershipEvent the mastership event. |
| 72 | */ |
| 73 | public void putSwitchMastershipEvent(MastershipEvent mastershipEvent); |
| 74 | |
| 75 | /** |
| 76 | * Switch Mastership removed event. |
| 77 | * |
| 78 | * @param mastershipEvent the mastership event. |
| 79 | */ |
| 80 | public void removeSwitchMastershipEvent(MastershipEvent mastershipEvent); |
Jonathan Hart | 22eb988 | 2014-02-11 15:52:59 -0800 | [diff] [blame] | 81 | } |