blob: 759b62a7783db4d695e7e0b4ba017168fd5926dc [file] [log] [blame]
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07001package org.onlab.onos.store;
2
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*/
11public interface ClockProviderService {
12
13 /**
14 * Updates the mastership term for the specified deviceId.
15 * @param deviceId device identifier.
16 * @param term mastership term.
17 */
18 public void setMastershipTerm(DeviceId deviceId, MastershipTerm term);
19}