blob: 8092f1edf5b05ed3da38d7d2eabc7f318a574008 [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
18/**
19 * Openstack telemetry service interface.
20 */
21public interface OpenstackTelemetryService {
22
23 /**
24 * Registers a new northbound telemetry service.
25 *
26 * @param telemetryService telemetry service
27 */
28 void addTelemetryService(TelemetryService telemetryService);
29
30 /**
31 * Unregisters an existing northbound telemetry service.
32 *
33 * @param telemetryService telemetry service
34 */
35 void removeTelemetryService(TelemetryService telemetryService);
36
37 /**
38 * Publishes new flow information to off-platform application through
39 * various northbound interfaces.
40 *
41 * @param flowInfo virtual flow information
42 */
43 void publish(FlowInfo flowInfo);
44}