blob: 567962e9ef74e2c088e3cbdcf71b2b93fd5a47ad [file] [log] [blame]
package org.onlab.onos.mastership;
import org.onlab.onos.net.DeviceId;
// TODO give me a better name
/**
* Service to obtain mastership term information.
*/
public interface MastershipTermService {
// TBD: manage/increment per device mastership change
// or increment on any change
/**
* Returns the term number of mastership change occurred for given device.
*
* @param deviceId the identifier of the device
* @return current master's term.
*/
MastershipTerm getMastershipTerm(DeviceId deviceId);
}