blob: f5ef52a2afd3b00ae34013fd5d854a574598550b [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 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.net.link;
tom0eb04ca2014-08-25 14:34:51 -070017
Brian O'Connorabafb502014-12-02 22:26:20 -080018import org.onosproject.net.ConnectPoint;
19import org.onosproject.net.DeviceId;
20import org.onosproject.net.provider.ProviderService;
tom0eb04ca2014-08-25 14:34:51 -070021
22/**
23 * Means for injecting link information into the core.
24 */
tomd7356722014-08-26 01:07:39 -070025public interface LinkProviderService extends ProviderService<LinkProvider> {
tom0eb04ca2014-08-25 14:34:51 -070026
27 /**
tomdb0d03f2014-08-27 16:34:15 -070028 * Signals that an infrastructure link has been detected.
tom0eb04ca2014-08-25 14:34:51 -070029 *
30 * @param linkDescription link information
31 */
tomdb0d03f2014-08-27 16:34:15 -070032 void linkDetected(LinkDescription linkDescription);
tom0eb04ca2014-08-25 14:34:51 -070033
34 /**
tomdb0d03f2014-08-27 16:34:15 -070035 * Signals that an infrastructure link has disappeared.
tom0eb04ca2014-08-25 14:34:51 -070036 *
37 * @param linkDescription link information
38 */
tomdb0d03f2014-08-27 16:34:15 -070039 void linkVanished(LinkDescription linkDescription);
tom0eb04ca2014-08-25 14:34:51 -070040
tomeadbb462014-09-07 16:10:19 -070041 /**
42 * Signals that infrastructure links associated with the specified
43 * connect point have vanished.
44 *
45 * @param connectPoint connect point
46 */
47 void linksVanished(ConnectPoint connectPoint);
48
49 /**
50 * Signals that infrastructure links associated with the specified
51 * device have vanished.
52 *
53 * @param deviceId device identifier
54 */
55 void linksVanished(DeviceId deviceId);
56
tom0eb04ca2014-08-25 14:34:51 -070057}