Yuta HIGUCHI | fa891c9 | 2014-10-09 15:21:40 -0700 | [diff] [blame] | 1 | package org.onlab.onos.cluster; |
Ayaka Koshibe | 8d504a9 | 2014-09-22 17:07:36 -0700 | [diff] [blame] | 2 | |
| 3 | import org.onlab.onos.net.DeviceId; |
Yuta HIGUCHI | d40483d | 2014-10-09 15:20:30 -0700 | [diff] [blame] | 4 | import org.onlab.onos.net.MastershipRole; |
Ayaka Koshibe | 8d504a9 | 2014-09-22 17:07:36 -0700 | [diff] [blame] | 5 | |
| 6 | /** |
| 7 | * Service for administering the inventory of device masterships. |
| 8 | */ |
Yuta HIGUCHI | fa891c9 | 2014-10-09 15:21:40 -0700 | [diff] [blame] | 9 | public interface MastershipAdminService { |
Ayaka Koshibe | 8d504a9 | 2014-09-22 17:07:36 -0700 | [diff] [blame] | 10 | |
| 11 | /** |
| 12 | * Applies the current mastership role for the specified device. |
| 13 | * |
| 14 | * @param instance controller instance identifier |
| 15 | * @param deviceId device identifier |
| 16 | * @param role requested role |
| 17 | */ |
Yuta HIGUCHI | d40483d | 2014-10-09 15:20:30 -0700 | [diff] [blame] | 18 | void setRole(NodeId instance, DeviceId deviceId, MastershipRole role); |
Ayaka Koshibe | 8d504a9 | 2014-09-22 17:07:36 -0700 | [diff] [blame] | 19 | |
| 20 | } |