blob: 6ef480de41b424aa7156212ccc0227bfb3f02a12 [file] [log] [blame]
Madan Jampani195af6e2014-10-09 15:01:17 -07001package org.onlab.onos.net.device;
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07002
Yuta HIGUCHI68b34942014-10-02 23:23:21 -07003import org.onlab.onos.net.DeviceId;
4
5//TODO: Consider renaming to DeviceClockProviderService?
6/**
7* Interface for feeding term information to a logical clock service
8* that vends per device timestamps.
9*/
Madan Jampani195af6e2014-10-09 15:01:17 -070010public interface DeviceClockProviderService {
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070011
12 /**
13 * Updates the mastership term for the specified deviceId.
Yuta HIGUCHI24b2e2a2014-10-07 15:53:57 -070014 *
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070015 * @param deviceId device identifier.
16 * @param term mastership term.
17 */
Madan Jampani195af6e2014-10-09 15:01:17 -070018 public void setDeviceMastershipTerm(DeviceId deviceId, DeviceMastershipTerm term);
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070019}