blob: dbc991b72f152cd63966f6aa948b3f53f1410cdf [file] [log] [blame]
Jian Li72b9b122016-02-11 15:58:51 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Jian Li72b9b122016-02-11 15:58:51 -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 */
16package org.onosproject.cpman.impl.message;
17
18import org.onosproject.cluster.NodeId;
19import org.onosproject.cpman.ControlLoad;
20import org.onosproject.cpman.ControlMetric;
21import org.onosproject.cpman.ControlMetricType;
22import org.onosproject.cpman.ControlPlaneMonitorService;
23import org.onosproject.cpman.ControlResource;
24import org.onosproject.net.DeviceId;
25
26import java.util.Optional;
27import java.util.Set;
Jian Li23906cc2016-03-31 11:16:44 -070028import java.util.concurrent.CompletableFuture;
Jian Li72b9b122016-02-11 15:58:51 -080029
30/**
31 * Test adapter control plane monitoring service.
32 */
33public class ControlPlaneMonitorServiceAdaptor implements ControlPlaneMonitorService {
34 @Override
35 public void updateMetric(ControlMetric controlMetric,
Jian Li23906cc2016-03-31 11:16:44 -070036 int updateIntervalInMinutes,
37 Optional<DeviceId> deviceId) {
Jian Li72b9b122016-02-11 15:58:51 -080038 }
39
40 @Override
41 public void updateMetric(ControlMetric controlMetric,
Jian Li23906cc2016-03-31 11:16:44 -070042 int updateIntervalInMinutes,
43 String resourceName) {
Jian Li72b9b122016-02-11 15:58:51 -080044 }
45
46 @Override
Jian Li23906cc2016-03-31 11:16:44 -070047 public ControlLoad getLocalLoad(ControlMetricType type,
48 Optional<DeviceId> deviceId) {
Jian Li72b9b122016-02-11 15:58:51 -080049 return null;
50 }
51
52 @Override
Jian Li23906cc2016-03-31 11:16:44 -070053 public ControlLoad getLocalLoad(ControlMetricType type, String resourceName) {
54 return null;
55 }
56
57 @Override
58 public CompletableFuture<ControlLoad> getRemoteLoad(NodeId nodeId,
59 ControlMetricType type,
60 Optional<DeviceId> deviceId) {
61 return null;
62 }
63
64 @Override
65 public CompletableFuture<ControlLoad> getRemoteLoad(NodeId nodeId,
66 ControlMetricType type,
67 String resourceName) {
Jian Li72b9b122016-02-11 15:58:51 -080068 return null;
69 }
70
71 @Override
72 public Set<String> availableResources(ControlResource.Type resourceType) {
73 return null;
74 }
75}