blob: fa05e1cdb53f601049409b53722f2186def669ce [file] [log] [blame]
Yuta HIGUCHIab9dc7b2014-08-26 22:53:13 -07001package net.onrc.onos.core.topology;
2
3import net.onrc.onos.core.util.Dpid;
4import net.onrc.onos.core.util.OnosInstanceId;
5
6// TODO probably "Base" prefix is not required
7/**
8 * Interface to access switch mastership information in the network view.
9 */
10public interface BaseMastership {
11
12 /**
13 * Gets the master instance ID for a switch.
14 *
15 * @param dpid switch dpid
16 * @return master instance ID or null if there is no master
17 */
18 public OnosInstanceId getSwitchMaster(Dpid dpid);
19
20// We may need something like below in the future
21// public List<ImmutablePair<OnosInstanceId, Role>> getSwitchMasterCandidates(Dpid dpid);
22}