blob: 907b3f8df2b53b20ab2563cf00c0e8c0f09cdcb6 [file] [log] [blame]
package org.onlab.onos.cluster;
import org.onlab.onos.net.DeviceId;
import org.onlab.onos.net.MastershipRole;
/**
* Service for administering the inventory of device masterships.
*/
public interface MastershipAdminService {
/**
* Applies the current mastership role for the specified device.
*
* @param instance controller instance identifier
* @param deviceId device identifier
* @param role requested role
*/
void setRole(NodeId instance, DeviceId deviceId, MastershipRole role);
}