blob: 290bb12abd876d63bda462edc6f9cc4b3b23fe9e [file] [log] [blame]
yjimmyyb94f93b2016-07-11 16:03:48 -07001/*
2 * Copyright 2016-present 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 */
16package org.onosproject.drivers.optical;
17
18import com.google.common.annotations.Beta;
19import org.onosproject.net.ConnectPoint;
20import org.onosproject.net.DeviceId;
21import org.onosproject.net.link.LinkDescription;
22
23/**
24 * Interface to allow for optical device drivers to add/remove links to
25 * the store. Acts as a proxy to LinkProviderService.
26 */
27@Beta
28public interface OpticalAdjacencyLinkService {
29 /**
30 * Signals that an infrastructure link has been detected.
31 *
32 * @param linkDescription link information
33 */
34 void linkDetected(LinkDescription linkDescription);
35
36 /**
37 * Signals that an infrastructure link has disappeared.
38 *
39 * @param linkDescription link information
40 */
41 void linkVanished(LinkDescription linkDescription);
42
43 /**
44 * Signals that infrastructure links associated with the specified
45 * connect point have vanished.
46 *
47 * @param connectPoint connect point
48 */
49 void linksVanished(ConnectPoint connectPoint);
50
51 /**
52 * Signals that infrastructure links associated with the specified
53 * device have vanished.
54 *
55 * @param deviceId device identifier
56 */
57 void linksVanished(DeviceId deviceId);
58}