blob: 85b361c466268e08e89e054d26820ad6416f3cd0 [file] [log] [blame]
Jian Li72b9b122016-02-11 15:58:51 -08001/*
2 * Copyright 2016 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.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;
28
29/**
30 * Test adapter control plane monitoring service.
31 */
32public class ControlPlaneMonitorServiceAdaptor implements ControlPlaneMonitorService {
33 @Override
34 public void updateMetric(ControlMetric controlMetric,
35 int updateIntervalInMinutes, Optional<DeviceId> deviceId) {
36 }
37
38 @Override
39 public void updateMetric(ControlMetric controlMetric,
40 int updateIntervalInMinutes, String resourceName) {
41 }
42
43 @Override
44 public ControlLoad getLoad(NodeId nodeId,
45 ControlMetricType type, Optional<DeviceId> deviceId) {
46 return null;
47 }
48
49 @Override
50 public ControlLoad getLoad(NodeId nodeId,
51 ControlMetricType type, String resourceName) {
52 return null;
53 }
54
55 @Override
56 public Set<String> availableResources(ControlResource.Type resourceType) {
57 return null;
58 }
59}