blob: c7044133c21ed0c25306ba922ba083b1dd7a4061 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
tom0eb04ca2014-08-25 14:34:51 -070016package org.onlab.onos.net.host;
17
tom7869ad92014-09-09 14:32:08 -070018import org.onlab.onos.net.HostId;
tomc1a38d32014-08-25 23:01:32 -070019import org.onlab.onos.net.provider.ProviderService;
tom0eb04ca2014-08-25 14:34:51 -070020
21/**
22 * Means of conveying host information to the core.
23 */
tomd7356722014-08-26 01:07:39 -070024public interface HostProviderService extends ProviderService<HostProvider> {
tom0eb04ca2014-08-25 14:34:51 -070025
tome33cc1a2014-08-25 21:59:41 -070026 /**
27 * Notifies the core when a host has been detected on a network along with
28 * information that identifies the hoot location.
29 *
tom7869ad92014-09-09 14:32:08 -070030 * @param hostId id of the host that been detected
tome33cc1a2014-08-25 21:59:41 -070031 * @param hostDescription description of host and its location
32 */
tom7869ad92014-09-09 14:32:08 -070033 void hostDetected(HostId hostId, HostDescription hostDescription);
tom0eb04ca2014-08-25 14:34:51 -070034
tome33cc1a2014-08-25 21:59:41 -070035 /**
36 * Notifies the core when a host is no longer detected on a network.
37 *
tom7869ad92014-09-09 14:32:08 -070038 * @param hostId id of the host that vanished
tome33cc1a2014-08-25 21:59:41 -070039 */
tom7869ad92014-09-09 14:32:08 -070040 void hostVanished(HostId hostId);
tome33cc1a2014-08-25 21:59:41 -070041
tom0eb04ca2014-08-25 14:34:51 -070042}