Added more switch/controller registry APIs and curator implementations
diff --git a/src/main/java/net/floodlightcontroller/mastership/IMastershipService.java b/src/main/java/net/floodlightcontroller/mastership/IMastershipService.java
index 83800c3..fdcb5c0 100644
--- a/src/main/java/net/floodlightcontroller/mastership/IMastershipService.java
+++ b/src/main/java/net/floodlightcontroller/mastership/IMastershipService.java
@@ -1,7 +1,10 @@
package net.floodlightcontroller.mastership;
+import java.util.Collection;
+
import net.floodlightcontroller.core.module.IFloodlightService;
+//Will change to something like IRegistryService
public interface IMastershipService extends IFloodlightService {
// Callback for all mastership changes.
@@ -24,4 +27,21 @@
public void setMastershipId (String id);
public String getMastershipId ();
+ /**
+ * Register a controller to the ONOS cluster
+ * @param controller A string identifying the controller and (possibly) how to talk to it.
+ * (We will have to develop a convention for this - most likely hostname:port)
+ */
+ public void registerController(String controllerId);
+
+ /**
+ * Get all controllers in the cluster
+ * @return
+ */
+ public Collection<String> getAllControllers();
+
+
+ public String getControllerForSwitch(long dpid);
+
+ public Collection<Long> getSwitchesControlledByController(String controllerId);
}