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