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