blob: 76c2aad20c8fd872ffc11246733807d231d0a5d3 [file] [log] [blame]
tom0eb04ca2014-08-25 14:34:51 -07001package org.onlab.onos.net.host;
2
tomc1a38d32014-08-25 23:01:32 -07003import org.onlab.onos.net.provider.ProviderService;
tom0eb04ca2014-08-25 14:34:51 -07004
5/**
6 * Means of conveying host information to the core.
7 */
tomd7356722014-08-26 01:07:39 -07008public interface HostProviderService extends ProviderService<HostProvider> {
tom0eb04ca2014-08-25 14:34:51 -07009
tome33cc1a2014-08-25 21:59:41 -070010 /**
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 */
tom0eb04ca2014-08-25 14:34:51 -070016 void hostDetected(HostDescription hostDescription);
17
tome33cc1a2014-08-25 21:59:41 -070018 /**
19 * Notifies the core when a host is no longer detected on a network.
20 *
21 * @param hostDescription description of host
22 */
tomdb0d03f2014-08-27 16:34:15 -070023 void hostVanished(HostDescription hostDescription);
tome33cc1a2014-08-25 21:59:41 -070024
tom0eb04ca2014-08-25 14:34:51 -070025}