blob: 76076d2ae207940a5a22f749440820c4a75c978a [file] [log] [blame]
Jian Lib9fe3492018-06-07 17:19:07 +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 Li69600e02018-12-24 13:21:18 +090018import org.onosproject.event.ListenerService;
Jian Lib9fe3492018-06-07 17:19:07 +090019import org.onosproject.openstacktelemetry.api.config.TelemetryConfig;
Jian Li69600e02018-12-24 13:21:18 +090020import org.onosproject.openstacktelemetry.api.config.TelemetryConfig.ConfigType;
21
22import java.util.Set;
Jian Lib9fe3492018-06-07 17:19:07 +090023
Jian Liae3fcff2018-07-30 11:55:44 +090024/**
25 * Telemetry configuration service interface.
26 */
Jian Li69600e02018-12-24 13:21:18 +090027public interface TelemetryConfigService
28 extends ListenerService<TelemetryConfigEvent, TelemetryConfigListener> {
Jian Lib9fe3492018-06-07 17:19:07 +090029
30 /**
Jian Li69600e02018-12-24 13:21:18 +090031 * Obtains the telemetry configuration with the given telemetry
32 * configuration name.
Jian Lib9fe3492018-06-07 17:19:07 +090033 *
Jian Li69600e02018-12-24 13:21:18 +090034 * @param name telemetry configuration name
35 * @return provided telemetry configuration
Jian Lib9fe3492018-06-07 17:19:07 +090036 */
Jian Li69600e02018-12-24 13:21:18 +090037 TelemetryConfig getConfig(String name);
38
39 /**
40 * Obtains the telemetry configuration with the given telemetry config type.
41 *
42 * @param type telemetry configuration type
43 * @return provided telemetry configurations
44 */
45 Set<TelemetryConfig> getConfigsByType(ConfigType type);
46
47 /**
48 * Returns the overall set of telemetry configurations being provided.
49 *
50 * @return provided telemetry configurations
51 */
52 Set<TelemetryConfig> getConfigs();
Jian Lib9fe3492018-06-07 17:19:07 +090053}