Added a function to the registry to allocate a block of numbers unique within the whole cluster using Curator's DistributedAtomicLong
diff --git a/src/main/java/net/onrc/onos/registry/controller/StandaloneRegistry.java b/src/main/java/net/onrc/onos/registry/controller/StandaloneRegistry.java
index 2c220fd..e48c519 100644
--- a/src/main/java/net/onrc/onos/registry/controller/StandaloneRegistry.java
+++ b/src/main/java/net/onrc/onos/registry/controller/StandaloneRegistry.java
@@ -115,6 +115,12 @@
String controllerId) {
throw new RuntimeException("Not yet implemented");
}
+
+ @Override
+ public IdBlock allocateUniqueIdBlock(){
+ //XXX Not exactly unique...
+ return new IdBlock(0L, 0x10000000L, 0x10000000L);
+ }
@Override
public Collection<Class<? extends IFloodlightService>> getModuleServices() {