blob: bea4a203c1be89beeebd9cca3526619c5bc8dbae [file] [log] [blame]
hirokibca3e932018-05-15 15:25:54 -07001/*
2 * Copyright 2018-present Open Networking Foundation
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 */
16
hirokif4ed5212018-05-26 22:39:38 -070017package org.onosproject.odtn;
hirokibca3e932018-05-15 15:25:54 -070018
19import org.onosproject.net.Device;
20import org.onosproject.net.Link;
hirokiec18d3a2018-05-16 15:27:37 -070021import org.onosproject.net.Port;
hirokibca3e932018-05-15 15:25:54 -070022
hirokiec18d3a2018-05-16 15:27:37 -070023/**
hiroki684aa2f2018-05-19 20:48:49 -070024 * ODTN Tapi topology manager application interface.
hirokiec18d3a2018-05-16 15:27:37 -070025 */
hirokibca3e932018-05-15 15:25:54 -070026public interface TapiTopologyManager {
27
hirokiec18d3a2018-05-16 15:27:37 -070028 /**
29 * DEVICE_ADDED event handler.
hirokif4ed5212018-05-26 22:39:38 -070030 *
hirokiec18d3a2018-05-16 15:27:37 -070031 * @param device device to be added
32 */
hirokibca3e932018-05-15 15:25:54 -070033 void addDevice(Device device);
34
hirokiec18d3a2018-05-16 15:27:37 -070035 /**
36 * DEVICE_REMOVED event handler.
hirokif4ed5212018-05-26 22:39:38 -070037 *
hirokiec18d3a2018-05-16 15:27:37 -070038 * @param device device to be removed
39 */
hirokibca3e932018-05-15 15:25:54 -070040 void removeDevice(Device device);
41
hirokiec18d3a2018-05-16 15:27:37 -070042 /**
43 * LINK_ADDED event handler.
hirokif4ed5212018-05-26 22:39:38 -070044 *
hirokiec18d3a2018-05-16 15:27:37 -070045 * @param link link to be added
46 */
hirokibca3e932018-05-15 15:25:54 -070047 void addLink(Link link);
48
hirokiec18d3a2018-05-16 15:27:37 -070049 /**
50 * LINK_REMOVED event handler.
hirokif4ed5212018-05-26 22:39:38 -070051 *
hirokiec18d3a2018-05-16 15:27:37 -070052 * @param link link to be removed
53 */
hirokibca3e932018-05-15 15:25:54 -070054 void removeLink(Link link);
55
hirokiec18d3a2018-05-16 15:27:37 -070056 /**
57 * PORT_ADDED event handler.
hirokif4ed5212018-05-26 22:39:38 -070058 *
hirokiec18d3a2018-05-16 15:27:37 -070059 * @param port port to be added
60 */
61 void addPort(Port port);
hirokibca3e932018-05-15 15:25:54 -070062
hirokiec18d3a2018-05-16 15:27:37 -070063 /**
64 * PORT_REMOVED event handler.
hirokif4ed5212018-05-26 22:39:38 -070065 *
hirokiec18d3a2018-05-16 15:27:37 -070066 * @param port port to be removed
67 */
68 void removePort(Port port);
hirokibca3e932018-05-15 15:25:54 -070069}