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 | |
| 17 | package org.onosproject.odtn.internal; |
| 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 | /** |
| 24 | * ODTN Tapi manager application interface. |
| 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. |
| 30 | * @param device device to be added |
| 31 | */ |
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 32 | void addDevice(Device device); |
| 33 | |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame^] | 34 | /** |
| 35 | * DEVICE_REMOVED event handler. |
| 36 | * @param device device to be removed |
| 37 | */ |
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 38 | void removeDevice(Device device); |
| 39 | |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame^] | 40 | /** |
| 41 | * LINK_ADDED event handler. |
| 42 | * @param link link to be added |
| 43 | */ |
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 44 | void addLink(Link link); |
| 45 | |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame^] | 46 | /** |
| 47 | * LINK_REMOVED event handler. |
| 48 | * @param link link to be removed |
| 49 | */ |
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 50 | void removeLink(Link link); |
| 51 | |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame^] | 52 | /** |
| 53 | * PORT_ADDED event handler. |
| 54 | * @param port port to be added |
| 55 | */ |
| 56 | void addPort(Port port); |
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 57 | |
hiroki | ec18d3a | 2018-05-16 15:27:37 -0700 | [diff] [blame^] | 58 | /** |
| 59 | * PORT_REMOVED event handler. |
| 60 | * @param port port to be removed |
| 61 | */ |
| 62 | void removePort(Port port); |
hiroki | bca3e93 | 2018-05-15 15:25:54 -0700 | [diff] [blame] | 63 | } |