blob: 860e7e79549fac85bb7c5e87af7b35ee26cc1510 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 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 */
Yuta HIGUCHI80912e62014-10-12 00:15:47 -070016package org.onlab.onos.mastership;
tomb41d1ac2014-09-24 01:51:24 -070017
Yuta HIGUCHI80912e62014-10-12 00:15:47 -070018import org.onlab.onos.cluster.NodeId;
Ayaka Koshibeabedb092014-10-20 17:01:31 -070019import org.onlab.onos.cluster.RoleInfo;
tomb41d1ac2014-09-24 01:51:24 -070020import org.onlab.onos.net.DeviceId;
21import org.onlab.onos.net.MastershipRole;
22
23import java.util.Set;
24
25/**
26 * Test adapter for mastership service.
27 */
28public class MastershipServiceAdapter implements MastershipService {
29 @Override
30 public MastershipRole getLocalRole(DeviceId deviceId) {
31 return null;
32 }
33
34 @Override
35 public MastershipRole requestRoleFor(DeviceId deviceId) {
36 return null;
37 }
38
39 @Override
40 public void relinquishMastership(DeviceId deviceId) {
41 }
42
43 @Override
44 public NodeId getMasterFor(DeviceId deviceId) {
45 return null;
46 }
47
48 @Override
49 public Set<DeviceId> getDevicesOf(NodeId nodeId) {
50 return null;
51 }
52
53 @Override
54 public void addListener(MastershipListener listener) {
55 }
56
57 @Override
58 public void removeListener(MastershipListener listener) {
59 }
Ayaka Koshibeb70d34b2014-09-25 15:43:01 -070060
61 @Override
Ayaka Koshibeabedb092014-10-20 17:01:31 -070062 public RoleInfo getNodesFor(DeviceId deviceId) {
Ayaka Koshibe45503ce2014-10-14 11:26:45 -070063 return null;
64 }
tomb41d1ac2014-09-24 01:51:24 -070065}