Ayaka Koshibe | 8d504a9 | 2014-09-22 17:07:36 -0700 | [diff] [blame^] | 1 | package org.onlab.onos.cluster; |
| 2 | |
| 3 | import org.onlab.onos.net.DeviceId; |
| 4 | import org.onlab.onos.net.MastershipRole; |
| 5 | |
| 6 | /** |
| 7 | * Service for administering the inventory of device masterships. |
| 8 | */ |
| 9 | public interface MastershipAdminService { |
| 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 | */ |
| 18 | void setRole(InstanceId instance, DeviceId deviceId, MastershipRole role); |
| 19 | |
| 20 | } |