blob: 52ff745f9e2f62959260697d9381ad177b1f45a5 [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 */
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 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 Lid1ce10a2018-06-12 13:47:23 +090046}