blob: cfd14c0a1dee8c9a6700348a8c94d1fe3d8b014d [file] [log] [blame]
Yuta HIGUCHI093e83e2014-10-10 22:26:11 -07001package org.onlab.onos.net.device;
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07002
3import org.onlab.onos.cluster.MastershipTerm;
4import 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 HIGUCHI093e83e2014-10-10 22:26:11 -070011public interface DeviceClockProviderService {
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070012
13 /**
14 * Updates the mastership term for the specified deviceId.
Yuta HIGUCHI24b2e2a2014-10-07 15:53:57 -070015 *
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070016 * @param deviceId device identifier.
17 * @param term mastership term.
18 */
19 public void setMastershipTerm(DeviceId deviceId, MastershipTerm term);
20}