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 | |
| 7 | import java.util.Set; |
| 8 | |
| 9 | /** |
| 10 | * Test adapter for mastership service. |
| 11 | */ |
| 12 | public class MastershipServiceAdapter implements MastershipService { |
| 13 | @Override |
| 14 | public MastershipRole getLocalRole(DeviceId deviceId) { |
| 15 | return null; |
| 16 | } |
| 17 | |
| 18 | @Override |
| 19 | public MastershipRole requestRoleFor(DeviceId deviceId) { |
| 20 | return null; |
| 21 | } |
| 22 | |
| 23 | @Override |
| 24 | public void relinquishMastership(DeviceId deviceId) { |
| 25 | } |
| 26 | |
| 27 | @Override |
| 28 | public NodeId getMasterFor(DeviceId deviceId) { |
| 29 | return null; |
| 30 | } |
| 31 | |
| 32 | @Override |
| 33 | public Set<DeviceId> getDevicesOf(NodeId nodeId) { |
| 34 | return null; |
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public void addListener(MastershipListener listener) { |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | public void removeListener(MastershipListener listener) { |
| 43 | } |
Ayaka Koshibe | b70d34b | 2014-09-25 15:43:01 -0700 | [diff] [blame] | 44 | |
| 45 | @Override |
| 46 | public MastershipTermService requestTermService() { |
| 47 | return null; |
| 48 | } |
tom | b41d1ac | 2014-09-24 01:51:24 -0700 | [diff] [blame] | 49 | } |