Yuta HIGUCHI | 093e83e | 2014-10-10 22:26:11 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.device; |
Madan Jampani | 61056bc | 2014-09-27 09:07:26 -0700 | [diff] [blame] | 2 | |
Madan Jampani | 61056bc | 2014-09-27 09:07:26 -0700 | [diff] [blame] | 3 | import org.onlab.onos.net.DeviceId; |
Yuta HIGUCHI | 093e83e | 2014-10-10 22:26:11 -0700 | [diff] [blame] | 4 | import org.onlab.onos.store.Timestamp; |
Madan Jampani | 61056bc | 2014-09-27 09:07:26 -0700 | [diff] [blame] | 5 | |
| 6 | /** |
| 7 | * Interface for a logical clock service that vends per device timestamps. |
| 8 | */ |
Yuta HIGUCHI | 093e83e | 2014-10-10 22:26:11 -0700 | [diff] [blame] | 9 | public interface DeviceClockService { |
Yuta HIGUCHI | 2e96389 | 2014-09-27 13:00:39 -0700 | [diff] [blame] | 10 | |
Madan Jampani | 61056bc | 2014-09-27 09:07:26 -0700 | [diff] [blame] | 11 | /** |
| 12 | * Returns a new timestamp for the specified deviceId. |
| 13 | * @param deviceId device identifier. |
| 14 | * @return timestamp. |
| 15 | */ |
| 16 | public Timestamp getTimestamp(DeviceId deviceId); |
Madan Jampani | 61056bc | 2014-09-27 09:07:26 -0700 | [diff] [blame] | 17 | } |