blob: 567962e9ef74e2c088e3cbdcf71b2b93fd5a47ad [file] [log] [blame]
Yuta HIGUCHI80912e62014-10-12 00:15:47 -07001package org.onlab.onos.mastership;
Yuta HIGUCHI080d7842014-09-25 13:53:15 -07002
3import org.onlab.onos.net.DeviceId;
4
5// TODO give me a better name
6/**
7 * Service to obtain mastership term information.
8 */
9public interface MastershipTermService {
10
11 // TBD: manage/increment per device mastership change
12 // or increment on any change
13 /**
14 * Returns the term number of mastership change occurred for given device.
15 *
16 * @param deviceId the identifier of the device
17 * @return current master's term.
18 */
19 MastershipTerm getMastershipTerm(DeviceId deviceId);
20}