inital term info service
Change-Id: I4503f1dcadda62bb25e2dba106e9a1101b4d37d6
Showing
2 changed files
with
26 additions
and
0 deletions
| 1 | +package org.onlab.onos.cluster; | ||
| 2 | + | ||
| 3 | +import org.onlab.onos.net.DeviceId; | ||
| 4 | + | ||
| 5 | +// TODO give me a better name | ||
| 6 | +/** | ||
| 7 | + * Service to obtain mastership term information. | ||
| 8 | + */ | ||
| 9 | +public 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 | +} |
-
Please register or login to post a comment