commit | 1530ccc63e4543abd3471d3071649cbecf13e8c8 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Wed Apr 03 19:36:02 2013 -0700 |
committer | Jonathan Hart <jono@onlab.us> | Wed Apr 03 19:36:02 2013 -0700 |
tree | 46a3a0e70ce0088828ca89bacabf8f41c57fc719 | |
parent | 55c294404142e4765e752c1483c882d916600469 [diff] [blame] |
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/IControllerRegistryService.java b/src/main/java/net/onrc/onos/registry/controller/IControllerRegistryService.java index dadee65..21da47e 100644 --- a/src/main/java/net/onrc/onos/registry/controller/IControllerRegistryService.java +++ b/src/main/java/net/onrc/onos/registry/controller/IControllerRegistryService.java
@@ -115,4 +115,7 @@ * @return Collection of dpids */ public Collection<Long> getSwitchesControlledByController(String controllerId); + + public IdBlock allocateUniqueIdBlock(); + }