blob: 95d2a88413ed17a273aefc325f6731df23b4fb72 [file] [log] [blame]
Jian Li72b9b122016-02-11 15:58:51 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
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;
Jian Li67e1e152016-04-18 17:52:58 -070019import org.onosproject.cpman.ControlLoadSnapshot;
Jian Li72b9b122016-02-11 15:58:51 -080020import 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 Li67e1e152016-04-18 17:52:58 -070029import java.util.concurrent.TimeUnit;
Jian Li72b9b122016-02-11 15:58:51 -080030
31/**
32 * Test adapter control plane monitoring service.
33 */
34public class ControlPlaneMonitorServiceAdaptor implements ControlPlaneMonitorService {
35 @Override
36 public void updateMetric(ControlMetric controlMetric,
Jian Li23906cc2016-03-31 11:16:44 -070037 int updateIntervalInMinutes,
38 Optional<DeviceId> deviceId) {
Jian Li72b9b122016-02-11 15:58:51 -080039 }
40
41 @Override
42 public void updateMetric(ControlMetric controlMetric,
Jian Li23906cc2016-03-31 11:16:44 -070043 int updateIntervalInMinutes,
44 String resourceName) {
Jian Li72b9b122016-02-11 15:58:51 -080045 }
46
47 @Override
Jian Li67e1e152016-04-18 17:52:58 -070048 public CompletableFuture<ControlLoadSnapshot> getLoad(NodeId nodeId,
49 ControlMetricType type,
50 Optional<DeviceId> deviceId) {
Jian Li72b9b122016-02-11 15:58:51 -080051 return null;
52 }
53
54 @Override
Jian Li67e1e152016-04-18 17:52:58 -070055 public CompletableFuture<ControlLoadSnapshot> getLoad(NodeId nodeId,
56 ControlMetricType type,
57 String resourceName) {
Jian Li23906cc2016-03-31 11:16:44 -070058 return null;
59 }
60
61 @Override
Jian Li67e1e152016-04-18 17:52:58 -070062 public CompletableFuture<ControlLoadSnapshot> getLoad(NodeId nodeId,
63 ControlMetricType type,
64 int duration, TimeUnit unit,
65 Optional<DeviceId> deviceId) {
Jian Li23906cc2016-03-31 11:16:44 -070066 return null;
67 }
68
69 @Override
Jian Li67e1e152016-04-18 17:52:58 -070070 public CompletableFuture<ControlLoadSnapshot> getLoad(NodeId nodeId,
71 ControlMetricType type,
72 int duration, TimeUnit unit,
73 String resourceName) {
Jian Li72b9b122016-02-11 15:58:51 -080074 return null;
75 }
76
77 @Override
Jian Li89eeccd2016-05-06 02:10:33 -070078 public CompletableFuture<Set<String>> availableResources(NodeId nodeId,
79 ControlResource.Type resourceType) {
Jian Li72b9b122016-02-11 15:58:51 -080080 return null;
81 }
82}