blob: 1fb4899424dbe7d2823b94491e2d1668d1d050d4 [file] [log] [blame]
Yuta HIGUCHI093e83e2014-10-10 22:26:11 -07001package org.onlab.onos.net.device;
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07002
Yuta HIGUCHI80912e62014-10-12 00:15:47 -07003import org.onlab.onos.mastership.MastershipTerm;
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07004import org.onlab.onos.net.DeviceId;
5
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07006/**
7* Interface for feeding term information to a logical clock service
8* that vends per device timestamps.
9*/
Yuta HIGUCHI093e83e2014-10-10 22:26:11 -070010public interface DeviceClockProviderService {
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070011
12 /**
13 * Updates the mastership term for the specified deviceId.
Yuta HIGUCHI24b2e2a2014-10-07 15:53:57 -070014 *
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070015 * @param deviceId device identifier.
16 * @param term mastership term.
17 */
18 public void setMastershipTerm(DeviceId deviceId, MastershipTerm term);
19}