Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 1 | /* |
Jian Li | e044d1a | 2016-01-25 09:01:20 -0800 | [diff] [blame] | 2 | * Copyright 2015-2016 Open Networking Laboratory |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 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 | */ |
Jian Li | 6b86a76 | 2016-01-29 09:30:40 -0800 | [diff] [blame] | 16 | package org.onosproject.cpman.impl; |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 17 | |
| 18 | import org.onosproject.net.DeviceId; |
| 19 | |
| 20 | import java.util.Optional; |
| 21 | |
| 22 | /** |
| 23 | * Control metrics observer interface. |
| 24 | */ |
| 25 | public interface ControlMetricsObserver { |
| 26 | |
| 27 | /** |
| 28 | * Feeds the extracted value from MetricAggregator to back-end storage. |
| 29 | * |
| 30 | * @param metricsAggregator metric aggregator |
Jian Li | c5cb4a1 | 2016-02-03 23:24:42 -0800 | [diff] [blame] | 31 | * @param deviceId device identification |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 32 | */ |
| 33 | void feedMetrics(MetricsAggregator metricsAggregator, Optional<DeviceId> deviceId); |
Jian Li | e044d1a | 2016-01-25 09:01:20 -0800 | [diff] [blame] | 34 | |
| 35 | /** |
| 36 | * Feeds the extracted value from MetricAggregator to back-end storage. |
| 37 | * |
| 38 | * @param metricsAggregator metric aggregator |
| 39 | * @param resourceName resource name |
| 40 | */ |
| 41 | void feedMetrics(MetricsAggregator metricsAggregator, String resourceName); |
Jian Li | 6080432 | 2015-12-02 14:46:31 -0800 | [diff] [blame] | 42 | } |