blob: a5f81c714ae3ee8d655e1be82dc416d6681d3710 [file] [log] [blame]
Yuta HIGUCHId40483d2014-10-09 15:20:30 -07001package org.onlab.onos.store;
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07002
Yuta HIGUCHIfa891c92014-10-09 15:21:40 -07003import org.onlab.onos.cluster.MastershipTerm;
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07004import 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 HIGUCHId40483d2014-10-09 15:20:30 -070011public interface ClockProviderService {
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 */
Yuta HIGUCHIfa891c92014-10-09 15:21:40 -070019 public void setMastershipTerm(DeviceId deviceId, MastershipTerm term);
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070020}