blob: 72264dc3c5d90f0b05163fdd93c018d5ed387cf3 [file] [log] [blame]
tom0eb04ca2014-08-25 14:34:51 -07001package org.onlab.onos.net.host;
2
tome33cc1a2014-08-25 21:59:41 -07003import org.onlab.onos.net.Host;
tomc1a38d32014-08-25 23:01:32 -07004import org.onlab.onos.net.provider.Provider;
tom0eb04ca2014-08-25 14:34:51 -07005
6/**
7 * Provider of information about hosts and their location on the network.
8 */
9public interface HostProvider extends Provider {
tome33cc1a2014-08-25 21:59:41 -070010
tome33cc1a2014-08-25 21:59:41 -070011 /**
12 * Triggers an asynchronous probe of the specified host, intended to
13 * determine whether the host is present or not. An indirect result of this
tom326b71a2014-09-09 14:49:17 -070014 * should be invocation of {@link org.onlab.onos.net.host.HostProviderService#hostDetected}
15 * or {@link org.onlab.onos.net.host.HostProviderService#hostVanished}
tome33cc1a2014-08-25 21:59:41 -070016 * at some later point in time.
17 *
18 * @param host host to probe
19 */
20 void triggerProbe(Host host);
21
tom0eb04ca2014-08-25 14:34:51 -070022}