blob: 2d8442b1b7a14cb0e9b834214f1236326484d6e2 [file] [log] [blame]
Jian Li60804322015-12-02 14:46:31 -08001/*
2 * Copyright 2015 Open Networking Laboratory
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.cpman;
17
18import org.apache.felix.scr.annotations.Activate;
19import org.apache.felix.scr.annotations.Deactivate;
20import org.apache.felix.scr.annotations.Modified;
21import org.apache.felix.scr.annotations.Component;
22import org.apache.felix.scr.annotations.Service;
23import org.onosproject.cluster.NodeId;
24import org.onosproject.net.DeviceId;
25import org.osgi.service.component.ComponentContext;
26import org.slf4j.Logger;
27
28import java.util.Optional;
29import java.util.concurrent.TimeUnit;
30
31import static org.slf4j.LoggerFactory.getLogger;
32
33/**
34 * Control plane monitoring service class.
35 */
36@Component(immediate = true)
37@Service
38public class ControlPlaneMonitor implements ControlPlaneMonitorService {
39
40 private final Logger log = getLogger(getClass());
41
42 @Activate
43 public void activate() {
44 }
45
46 @Deactivate
47 public void deactivate() {
48 }
49
50 @Modified
51 public void modified(ComponentContext context) {
52 }
53
54 @Override
55 public void updateMetric(ControlMetric cpm, int updateInterval,
56 Optional<DeviceId> deviceId) {
57 }
58
59 @Override
60 public ControlLoad getLoad(NodeId nodeId, ControlMetricType type,
61 Optional<DeviceId> deviceId) {
62 return null;
63 }
64
65 @Override
66 public ControlLoad getLoad(NodeId nodeId, ControlMetricType type,
67 Optional<DeviceId> deviceId, int duration, TimeUnit unit) {
68 return null;
69 }
70}