blob: e558dd4f0e2040d1958908ebfb27dc28b002549b [file] [log] [blame]
Yuta HIGUCHI80912e62014-10-12 00:15:47 -07001package org.onlab.onos.mastership;
Ayaka Koshibe8d504a92014-09-22 17:07:36 -07002
Yuta HIGUCHI80912e62014-10-12 00:15:47 -07003import org.onlab.onos.cluster.NodeId;
Ayaka Koshibe8d504a92014-09-22 17:07:36 -07004import org.onlab.onos.net.DeviceId;
5import org.onlab.onos.net.MastershipRole;
6
7/**
8 * Service for administering the inventory of device masterships.
9 */
10public interface MastershipAdminService {
11
12 /**
13 * Applies the current mastership role for the specified device.
14 *
15 * @param instance controller instance identifier
16 * @param deviceId device identifier
17 * @param role requested role
18 */
tome4729872014-09-23 00:37:37 -070019 void setRole(NodeId instance, DeviceId deviceId, MastershipRole role);
Ayaka Koshibe8d504a92014-09-22 17:07:36 -070020
21}