blob: fff6d1548d29e9e8443734da13f799251cc8f2ee [file] [log] [blame]
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07001package org.onlab.onos.store;
2
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07003import org.onlab.onos.net.DeviceId;
Madan Jampani58819b42014-10-09 13:48:51 -07004import org.onlab.onos.net.device.DeviceMastershipTerm;
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07005
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*/
11public interface ClockProviderService {
12
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 */
Madan Jampani58819b42014-10-09 13:48:51 -070019 public void setMastershipTerm(DeviceId deviceId, DeviceMastershipTerm term);
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070020}