Yuta HIGUCHI | d40483d | 2014-10-09 15:20:30 -0700 | [diff] [blame] | 1 | package org.onlab.onos.store; |
Yuta HIGUCHI | 68b3494 | 2014-10-02 23:23:21 -0700 | [diff] [blame] | 2 | |
Yuta HIGUCHI | fa891c9 | 2014-10-09 15:21:40 -0700 | [diff] [blame] | 3 | import org.onlab.onos.cluster.MastershipTerm; |
Yuta HIGUCHI | 68b3494 | 2014-10-02 23:23:21 -0700 | [diff] [blame] | 4 | import org.onlab.onos.net.DeviceId; |
| 5 | |
| 6 | //TODO: Consider renaming to DeviceClockProviderService? |
| 7 | /** |
| 8 | * Interface for feeding term information to a logical clock service |
| 9 | * that vends per device timestamps. |
| 10 | */ |
Yuta HIGUCHI | d40483d | 2014-10-09 15:20:30 -0700 | [diff] [blame] | 11 | public interface ClockProviderService { |
Yuta HIGUCHI | 68b3494 | 2014-10-02 23:23:21 -0700 | [diff] [blame] | 12 | |
| 13 | /** |
| 14 | * Updates the mastership term for the specified deviceId. |
Yuta HIGUCHI | 24b2e2a | 2014-10-07 15:53:57 -0700 | [diff] [blame] | 15 | * |
Yuta HIGUCHI | 68b3494 | 2014-10-02 23:23:21 -0700 | [diff] [blame] | 16 | * @param deviceId device identifier. |
| 17 | * @param term mastership term. |
| 18 | */ |
Yuta HIGUCHI | fa891c9 | 2014-10-09 15:21:40 -0700 | [diff] [blame] | 19 | public void setMastershipTerm(DeviceId deviceId, MastershipTerm term); |
Yuta HIGUCHI | 68b3494 | 2014-10-02 23:23:21 -0700 | [diff] [blame] | 20 | } |