blob: b19f962f239aa28f97716b487bf9194a6ca32d96 [file] [log] [blame]
Jian Li60804322015-12-02 14:46:31 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Jian Li60804322015-12-02 14:46:31 -08003 *
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 Li6b86a762016-01-29 09:30:40 -080016package org.onosproject.cpman.impl;
Jian Li60804322015-12-02 14:46:31 -080017
18import org.onosproject.net.DeviceId;
19
20import java.util.Optional;
21
22/**
23 * Control metrics observer interface.
24 */
25public interface ControlMetricsObserver {
26
27 /**
28 * Feeds the extracted value from MetricAggregator to back-end storage.
29 *
30 * @param metricsAggregator metric aggregator
Jian Lic5cb4a12016-02-03 23:24:42 -080031 * @param deviceId device identification
Jian Li60804322015-12-02 14:46:31 -080032 */
33 void feedMetrics(MetricsAggregator metricsAggregator, Optional<DeviceId> deviceId);
Jian Lie044d1a2016-01-25 09:01:20 -080034
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 Li60804322015-12-02 14:46:31 -080042}