Yuta HIGUCHI | 80912e6 | 2014-10-12 00:15:47 -0700 | [diff] [blame] | 1 | package org.onlab.onos.mastership; |
Yuta HIGUCHI | 080d784 | 2014-09-25 13:53:15 -0700 | [diff] [blame] | 2 | |
| 3 | import org.onlab.onos.net.DeviceId; |
| 4 | |
| 5 | // TODO give me a better name |
| 6 | /** |
| 7 | * Service to obtain mastership term information. |
| 8 | */ |
| 9 | public interface MastershipTermService { |
| 10 | |
| 11 | // TBD: manage/increment per device mastership change |
| 12 | // or increment on any change |
| 13 | /** |
| 14 | * Returns the term number of mastership change occurred for given device. |
| 15 | * |
| 16 | * @param deviceId the identifier of the device |
| 17 | * @return current master's term. |
| 18 | */ |
| 19 | MastershipTerm getMastershipTerm(DeviceId deviceId); |
| 20 | } |