blob: 0f02c639cbd3c67ccbfd52446259b3c61483857f [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
17package org.onosproject.odtn.internal;
18
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/**
24 * ODTN Tapi manager application interface.
25 */
hirokibca3e932018-05-15 15:25:54 -070026public interface TapiTopologyManager {
27
hirokiec18d3a2018-05-16 15:27:37 -070028 /**
29 * DEVICE_ADDED event handler.
30 * @param device device to be added
31 */
hirokibca3e932018-05-15 15:25:54 -070032 void addDevice(Device device);
33
hirokiec18d3a2018-05-16 15:27:37 -070034 /**
35 * DEVICE_REMOVED event handler.
36 * @param device device to be removed
37 */
hirokibca3e932018-05-15 15:25:54 -070038 void removeDevice(Device device);
39
hirokiec18d3a2018-05-16 15:27:37 -070040 /**
41 * LINK_ADDED event handler.
42 * @param link link to be added
43 */
hirokibca3e932018-05-15 15:25:54 -070044 void addLink(Link link);
45
hirokiec18d3a2018-05-16 15:27:37 -070046 /**
47 * LINK_REMOVED event handler.
48 * @param link link to be removed
49 */
hirokibca3e932018-05-15 15:25:54 -070050 void removeLink(Link link);
51
hirokiec18d3a2018-05-16 15:27:37 -070052 /**
53 * PORT_ADDED event handler.
54 * @param port port to be added
55 */
56 void addPort(Port port);
hirokibca3e932018-05-15 15:25:54 -070057
hirokiec18d3a2018-05-16 15:27:37 -070058 /**
59 * PORT_REMOVED event handler.
60 * @param port port to be removed
61 */
62 void removePort(Port port);
hirokibca3e932018-05-15 15:25:54 -070063}