Yuta HIGUCHI | 80912e6 | 2014-10-12 00:15:47 -0700 | [diff] [blame] | 1 | package org.onlab.onos.mastership; |
tom | b41d1ac | 2014-09-24 01:51:24 -0700 | [diff] [blame] | 2 | |
Yuta HIGUCHI | 80912e6 | 2014-10-12 00:15:47 -0700 | [diff] [blame] | 3 | import org.onlab.onos.cluster.NodeId; |
tom | b41d1ac | 2014-09-24 01:51:24 -0700 | [diff] [blame] | 4 | import org.onlab.onos.net.DeviceId; |
| 5 | import org.onlab.onos.net.MastershipRole; |
| 6 | |
Ayaka Koshibe | 45503ce | 2014-10-14 11:26:45 -0700 | [diff] [blame] | 7 | import java.util.List; |
tom | b41d1ac | 2014-09-24 01:51:24 -0700 | [diff] [blame] | 8 | import java.util.Set; |
| 9 | |
| 10 | /** |
| 11 | * Test adapter for mastership service. |
| 12 | */ |
| 13 | public class MastershipServiceAdapter implements MastershipService { |
| 14 | @Override |
| 15 | public MastershipRole getLocalRole(DeviceId deviceId) { |
| 16 | return null; |
| 17 | } |
| 18 | |
| 19 | @Override |
| 20 | public MastershipRole requestRoleFor(DeviceId deviceId) { |
| 21 | return null; |
| 22 | } |
| 23 | |
| 24 | @Override |
| 25 | public void relinquishMastership(DeviceId deviceId) { |
| 26 | } |
| 27 | |
| 28 | @Override |
| 29 | public NodeId getMasterFor(DeviceId deviceId) { |
| 30 | return null; |
| 31 | } |
| 32 | |
| 33 | @Override |
| 34 | public Set<DeviceId> getDevicesOf(NodeId nodeId) { |
| 35 | return null; |
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public void addListener(MastershipListener listener) { |
| 40 | } |
| 41 | |
| 42 | @Override |
| 43 | public void removeListener(MastershipListener listener) { |
| 44 | } |
Ayaka Koshibe | b70d34b | 2014-09-25 15:43:01 -0700 | [diff] [blame] | 45 | |
| 46 | @Override |
| 47 | public MastershipTermService requestTermService() { |
| 48 | return null; |
| 49 | } |
Ayaka Koshibe | 45503ce | 2014-10-14 11:26:45 -0700 | [diff] [blame] | 50 | |
| 51 | @Override |
| 52 | public List<NodeId> getNodesFor(DeviceId deviceId) { |
| 53 | return null; |
| 54 | } |
tom | b41d1ac | 2014-09-24 01:51:24 -0700 | [diff] [blame] | 55 | } |