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