Madan Jampani | fd26ffb | 2014-10-13 14:08:55 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.host; |
| 2 | |
Madan Jampani | b5e9b1d | 2014-10-13 14:18:39 -0700 | [diff] [blame] | 3 | import org.onlab.onos.net.HostId; |
Madan Jampani | fd26ffb | 2014-10-13 14:08:55 -0700 | [diff] [blame] | 4 | import org.onlab.onos.store.Timestamp; |
Madan Jampani | fd26ffb | 2014-10-13 14:08:55 -0700 | [diff] [blame] | 5 | |
| 6 | /** |
| 7 | * Interface for a logical clock service that issues per host timestamps. |
| 8 | */ |
| 9 | public interface HostClockService { |
| 10 | |
| 11 | /** |
Madan Jampani | b5e9b1d | 2014-10-13 14:18:39 -0700 | [diff] [blame] | 12 | * Returns a new timestamp for the specified host. |
| 13 | * @param hostId identifier for the host. |
Madan Jampani | fd26ffb | 2014-10-13 14:08:55 -0700 | [diff] [blame] | 14 | * @return timestamp. |
| 15 | */ |
Madan Jampani | b5e9b1d | 2014-10-13 14:18:39 -0700 | [diff] [blame] | 16 | public Timestamp getTimestamp(HostId hostId); |
Madan Jampani | fd26ffb | 2014-10-13 14:08:55 -0700 | [diff] [blame] | 17 | } |