blob: b03ed81b46cc5737edfdf60ec8e4a136d8cf6845 [file] [log] [blame]
Yuta HIGUCHI080d7842014-09-25 13:53:15 -07001package org.onlab.onos.cluster;
2
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}