hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 1 | /* |
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 | |||||
hiroki | f4ed521 | 2018-05-26 22:39:38 -0700 | [diff] [blame] | 17 | package org.onosproject.odtn; |
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 18 | |
19 | import org.onosproject.net.Device; | ||||
20 | import org.onosproject.net.Link; | ||||
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 21 | import org.onosproject.net.Port; |
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 22 | |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 23 | /** |
hiroki | 684aa2f | 2018-05-19 20:48:49 -0700 | [diff] [blame] | 24 | * ODTN Tapi topology manager application interface. |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 25 | */ |
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 26 | public interface TapiTopologyManager { |
27 | |||||
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 28 | /** |
29 | * DEVICE_ADDED event handler. | ||||
hiroki | f4ed521 | 2018-05-26 22:39:38 -0700 | [diff] [blame] | 30 | * |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 31 | * @param device device to be added |
32 | */ | ||||
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 33 | void addDevice(Device device); |
34 | |||||
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 35 | /** |
36 | * DEVICE_REMOVED event handler. | ||||
hiroki | f4ed521 | 2018-05-26 22:39:38 -0700 | [diff] [blame] | 37 | * |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 38 | * @param device device to be removed |
39 | */ | ||||
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 40 | void removeDevice(Device device); |
41 | |||||
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 42 | /** |
43 | * LINK_ADDED event handler. | ||||
hiroki | f4ed521 | 2018-05-26 22:39:38 -0700 | [diff] [blame] | 44 | * |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 45 | * @param link link to be added |
46 | */ | ||||
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 47 | void addLink(Link link); |
48 | |||||
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 49 | /** |
50 | * LINK_REMOVED event handler. | ||||
hiroki | f4ed521 | 2018-05-26 22:39:38 -0700 | [diff] [blame] | 51 | * |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 52 | * @param link link to be removed |
53 | */ | ||||
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 54 | void removeLink(Link link); |
55 | |||||
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 56 | /** |
57 | * PORT_ADDED event handler. | ||||
hiroki | f4ed521 | 2018-05-26 22:39:38 -0700 | [diff] [blame] | 58 | * |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 59 | * @param port port to be added |
60 | */ | ||||
61 | void addPort(Port port); | ||||
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 62 | |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 63 | /** |
64 | * PORT_REMOVED event handler. | ||||
hiroki | f4ed521 | 2018-05-26 22:39:38 -0700 | [diff] [blame] | 65 | * |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame] | 66 | * @param port port to be removed |
67 | */ | ||||
68 | void removePort(Port port); | ||||
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 69 | } |