tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.host; |
| 2 | |
tom | c1a38d3 | 2014-08-25 23:01:32 -0700 | [diff] [blame] | 3 | import org.onlab.onos.net.provider.ProviderService; |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 4 | |
| 5 | /** |
| 6 | * Means of conveying host information to the core. |
| 7 | */ |
tom | d735672 | 2014-08-26 01:07:39 -0700 | [diff] [blame] | 8 | public interface HostProviderService extends ProviderService<HostProvider> { |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 9 | |
tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 10 | /** |
| 11 | * Notifies the core when a host has been detected on a network along with |
| 12 | * information that identifies the hoot location. |
| 13 | * |
| 14 | * @param hostDescription description of host and its location |
| 15 | */ |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 16 | void hostDetected(HostDescription hostDescription); |
| 17 | |
tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 18 | /** |
| 19 | * Notifies the core when a host is no longer detected on a network. |
| 20 | * |
| 21 | * @param hostDescription description of host |
| 22 | */ |
tom | db0d03f | 2014-08-27 16:34:15 -0700 | [diff] [blame] | 23 | void hostVanished(HostDescription hostDescription); |
tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 24 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 25 | } |