blob: 850e2e7c19ac275bff0d594959c95ebe1105add8 [file] [log] [blame]
Jian Lid1ce10a2018-06-12 13:47:23 +09001/*
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 */
16package org.onosproject.openstacktelemetry.api;
17
Jian Li0bbbb1c2018-06-22 22:01:17 +090018import java.util.Set;
19
Jian Lid1ce10a2018-06-12 13:47:23 +090020/**
21 * Openstack telemetry service interface.
22 */
23public interface OpenstackTelemetryService {
24
25 /**
26 * Registers a new northbound telemetry service.
27 *
28 * @param telemetryService telemetry service
29 */
Jian Li69600e02018-12-24 13:21:18 +090030 void addTelemetryService(TelemetryAdminService telemetryService);
Jian Lid1ce10a2018-06-12 13:47:23 +090031
32 /**
33 * Unregisters an existing northbound telemetry service.
34 *
35 * @param telemetryService telemetry service
36 */
Jian Li69600e02018-12-24 13:21:18 +090037 void removeTelemetryService(TelemetryAdminService telemetryService);
Jian Lid1ce10a2018-06-12 13:47:23 +090038
39 /**
40 * Publishes new flow information to off-platform application through
41 * various northbound interfaces.
42 *
Jian Li0bbbb1c2018-06-22 22:01:17 +090043 * @param flowInfos virtual flow information
Jian Lid1ce10a2018-06-12 13:47:23 +090044 */
Jian Li0bbbb1c2018-06-22 22:01:17 +090045 void publish(Set<FlowInfo> flowInfos);
Jian Liae3fcff2018-07-30 11:55:44 +090046
47 /**
48 * Obtains a collection of openstack telemetry services.
49 *
50 * @return telemetry services
51 */
Jian Li69600e02018-12-24 13:21:18 +090052 Set<TelemetryAdminService> telemetryServices();
53
54 /**
55 * Obtains a specific openstack telemetry service.
56 *
57 * @param type telemetry type
58 * @return telemetry service instance
59 */
60 TelemetryAdminService telemetryService(String type);
Jian Lid1ce10a2018-06-12 13:47:23 +090061}