blob: a5f81c714ae3ee8d655e1be82dc416d6681d3710 [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.
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}