Jian Li | d1ce10a | 2018-06-12 13:47:23 +0900 | [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 | package org.onosproject.openstacktelemetry.api; |
| 17 | |
Jian Li | 0bbbb1c | 2018-06-22 22:01:17 +0900 | [diff] [blame] | 18 | import java.util.Set; |
| 19 | |
Jian Li | d1ce10a | 2018-06-12 13:47:23 +0900 | [diff] [blame] | 20 | /** |
| 21 | * Openstack telemetry service interface. |
| 22 | */ |
| 23 | public interface OpenstackTelemetryService { |
| 24 | |
| 25 | /** |
| 26 | * Registers a new northbound telemetry service. |
| 27 | * |
| 28 | * @param telemetryService telemetry service |
| 29 | */ |
| 30 | void addTelemetryService(TelemetryService telemetryService); |
| 31 | |
| 32 | /** |
| 33 | * Unregisters an existing northbound telemetry service. |
| 34 | * |
| 35 | * @param telemetryService telemetry service |
| 36 | */ |
| 37 | void removeTelemetryService(TelemetryService telemetryService); |
| 38 | |
| 39 | /** |
| 40 | * Publishes new flow information to off-platform application through |
| 41 | * various northbound interfaces. |
| 42 | * |
Jian Li | 0bbbb1c | 2018-06-22 22:01:17 +0900 | [diff] [blame] | 43 | * @param flowInfos virtual flow information |
Jian Li | d1ce10a | 2018-06-12 13:47:23 +0900 | [diff] [blame] | 44 | */ |
Jian Li | 0bbbb1c | 2018-06-22 22:01:17 +0900 | [diff] [blame] | 45 | void publish(Set<FlowInfo> flowInfos); |
Jian Li | ae3fcff | 2018-07-30 11:55:44 +0900 | [diff] [blame] | 46 | |
| 47 | /** |
| 48 | * Obtains a collection of openstack telemetry services. |
| 49 | * |
| 50 | * @return telemetry services |
| 51 | */ |
| 52 | Set<TelemetryService> telemetryServices(); |
Jian Li | d1ce10a | 2018-06-12 13:47:23 +0900 | [diff] [blame] | 53 | } |