tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.link; |
| 2 | |
tom | eadbb46 | 2014-09-07 16:10:19 -0700 | [diff] [blame] | 3 | import org.onlab.onos.net.ConnectPoint; |
| 4 | import org.onlab.onos.net.DeviceId; |
tom | c1a38d3 | 2014-08-25 23:01:32 -0700 | [diff] [blame] | 5 | import org.onlab.onos.net.provider.ProviderService; |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 6 | |
| 7 | /** |
| 8 | * Means for injecting link information into the core. |
| 9 | */ |
tom | d735672 | 2014-08-26 01:07:39 -0700 | [diff] [blame] | 10 | public interface LinkProviderService extends ProviderService<LinkProvider> { |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 11 | |
| 12 | /** |
tom | db0d03f | 2014-08-27 16:34:15 -0700 | [diff] [blame] | 13 | * Signals that an infrastructure link has been detected. |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 14 | * |
| 15 | * @param linkDescription link information |
| 16 | */ |
tom | db0d03f | 2014-08-27 16:34:15 -0700 | [diff] [blame] | 17 | void linkDetected(LinkDescription linkDescription); |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 18 | |
| 19 | /** |
tom | db0d03f | 2014-08-27 16:34:15 -0700 | [diff] [blame] | 20 | * Signals that an infrastructure link has disappeared. |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 21 | * |
| 22 | * @param linkDescription link information |
| 23 | */ |
tom | db0d03f | 2014-08-27 16:34:15 -0700 | [diff] [blame] | 24 | void linkVanished(LinkDescription linkDescription); |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 25 | |
tom | eadbb46 | 2014-09-07 16:10:19 -0700 | [diff] [blame] | 26 | /** |
| 27 | * Signals that infrastructure links associated with the specified |
| 28 | * connect point have vanished. |
| 29 | * |
| 30 | * @param connectPoint connect point |
| 31 | */ |
| 32 | void linksVanished(ConnectPoint connectPoint); |
| 33 | |
| 34 | /** |
| 35 | * Signals that infrastructure links associated with the specified |
| 36 | * device have vanished. |
| 37 | * |
| 38 | * @param deviceId device identifier |
| 39 | */ |
| 40 | void linksVanished(DeviceId deviceId); |
| 41 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 42 | } |