Ayaka Koshibe | 1660969 | 2014-09-23 12:46:15 -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 | import org.onlab.onos.net.provider.ProviderService; |
| 6 | |
| 7 | public interface MastershipProviderService extends |
| 8 | ProviderService<MastershipProvider> { |
| 9 | |
| 10 | /** |
| 11 | * Signals the core that mastership has changed for a device. |
| 12 | * |
| 13 | * @param deviceId the device ID |
| 14 | * @param role the new mastership role of this controller instance |
| 15 | */ |
Ayaka Koshibe | 3eed2b0 | 2014-09-23 13:28:05 -0700 | [diff] [blame] | 16 | void roleChanged(NodeId nodeId, DeviceId deviceId, MastershipRole role); |
Ayaka Koshibe | 1660969 | 2014-09-23 12:46:15 -0700 | [diff] [blame] | 17 | |
| 18 | } |