blob: 907b3f8df2b53b20ab2563cf00c0e8c0f09cdcb6 [file] [log] [blame]
Yuta HIGUCHIfa891c92014-10-09 15:21:40 -07001package org.onlab.onos.cluster;
Ayaka Koshibe8d504a92014-09-22 17:07:36 -07002
3import org.onlab.onos.net.DeviceId;
Yuta HIGUCHId40483d2014-10-09 15:20:30 -07004import org.onlab.onos.net.MastershipRole;
Ayaka Koshibe8d504a92014-09-22 17:07:36 -07005
6/**
7 * Service for administering the inventory of device masterships.
8 */
Yuta HIGUCHIfa891c92014-10-09 15:21:40 -07009public interface MastershipAdminService {
Ayaka Koshibe8d504a92014-09-22 17:07:36 -070010
11 /**
12 * Applies the current mastership role for the specified device.
13 *
14 * @param instance controller instance identifier
15 * @param deviceId device identifier
16 * @param role requested role
17 */
Yuta HIGUCHId40483d2014-10-09 15:20:30 -070018 void setRole(NodeId instance, DeviceId deviceId, MastershipRole role);
Ayaka Koshibe8d504a92014-09-22 17:07:36 -070019
20}