blob: 322210ee3b9cd101eb5d501dfb21c8f37d3585c6 [file] [log] [blame]
Umesh Krishnaswamyb56bb292013-02-12 20:28:27 -08001package net.floodlightcontroller.mastership;
2
3import net.floodlightcontroller.core.module.IFloodlightService;
4
5public interface IMastershipService extends IFloodlightService {
6
7 // Acquire mastership for a switch.
8 public void acquireMastership(long dpid, boolean blockOk);
9
10 // Release mastership for a switch
11 public void releaseMastership(long dpid);
12
13 // Check if I am the master of a switch. This is a nonblocking call that checks if the caller is a
14 public boolean amMaster(long dpid);
15
16 // Set/Get mastership identifier.
17 // This is typically a unique identifier of the controller that does not change across restarts
18 public void setMastershipId (String id);
19 public String getMastershipId ();
20
21}