blob: 18ee89bf3e4b7233b1f50502145b1b20d1c22f47 [file] [log] [blame]
Jian Li69600e02018-12-24 13:21:18 +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
18import org.onosproject.openstacktelemetry.api.config.TelemetryConfig;
19
20import java.util.Set;
21
22/**
23 * Service for mapping telemetry configurations implementations.
24 */
25public interface TelemetryConfigAdminService extends TelemetryConfigService {
26
27 /**
28 * Returns the set of telemetry configurations currently registered.
29 *
30 * @return registered telemetry configurations
31 */
32 Set<TelemetryConfigProvider> getProviders();
33
34 /**
35 * Registers the specified telemetry configuration provider.
36 *
37 * @param provider configuration provider to register
38 */
39 void registerProvider(TelemetryConfigProvider provider);
40
41 /**
42 * Unregisters the specified telemetry configuration provider.
43 *
44 * @param provider configuration provider to unregister
45 */
46 void unregisterProvider(TelemetryConfigProvider provider);
47
48 /**
49 * Updates an existing telemetry configuration.
50 *
51 * @param config telemetry configuration
52 */
53 void updateTelemetryConfig(TelemetryConfig config);
54}