blob: 5ffe4a4f1d6b15bb36b4eec4cf19c2efe84fde4c [file] [log] [blame]
Jian Li60804322015-12-02 14:46:31 -08001/*
Jian Lie044d1a2016-01-25 09:01:20 -08002 * Copyright 2015-2016 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.apache.felix.scr.annotations.Activate;
Jian Lic132c112016-01-28 20:27:34 -080019import org.apache.felix.scr.annotations.Component;
Jian Li60804322015-12-02 14:46:31 -080020import org.apache.felix.scr.annotations.Deactivate;
Jian Li60804322015-12-02 14:46:31 -080021import org.apache.felix.scr.annotations.Service;
22import org.onosproject.cluster.NodeId;
Jian Li6b86a762016-01-29 09:30:40 -080023import org.onosproject.cpman.ControlLoad;
24import org.onosproject.cpman.ControlMetric;
25import org.onosproject.cpman.ControlMetricType;
26import org.onosproject.cpman.ControlPlaneMonitorService;
Jian Li60804322015-12-02 14:46:31 -080027import org.onosproject.net.DeviceId;
Jian Li60804322015-12-02 14:46:31 -080028import org.slf4j.Logger;
29
30import java.util.Optional;
31import java.util.concurrent.TimeUnit;
32
33import static org.slf4j.LoggerFactory.getLogger;
34
35/**
36 * Control plane monitoring service class.
37 */
38@Component(immediate = true)
39@Service
40public class ControlPlaneMonitor implements ControlPlaneMonitorService {
41
42 private final Logger log = getLogger(getClass());
43
44 @Activate
45 public void activate() {
46 }
47
48 @Deactivate
49 public void deactivate() {
50 }
51
Jian Li60804322015-12-02 14:46:31 -080052 @Override
Jian Lic132c112016-01-28 20:27:34 -080053 public void updateMetric(ControlMetric cpm, Integer updateInterval,
Jian Li60804322015-12-02 14:46:31 -080054 Optional<DeviceId> deviceId) {
Jian Li46148902016-01-29 13:33:50 -080055
Jian Li60804322015-12-02 14:46:31 -080056 }
57
58 @Override
Jian Lic132c112016-01-28 20:27:34 -080059 public void updateMetric(ControlMetric controlMetric, Integer updateInterval,
Jian Lie044d1a2016-01-25 09:01:20 -080060 String resourceName) {
61
62 }
63
64 @Override
Jian Li60804322015-12-02 14:46:31 -080065 public ControlLoad getLoad(NodeId nodeId, ControlMetricType type,
66 Optional<DeviceId> deviceId) {
67 return null;
68 }
69
70 @Override
71 public ControlLoad getLoad(NodeId nodeId, ControlMetricType type,
72 Optional<DeviceId> deviceId, int duration, TimeUnit unit) {
73 return null;
74 }
75}