commit | 5eb77c88b6865ae8b848e0e3734f593339f6cdc7 | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Mon Mar 02 18:09:39 2015 -0800 |
committer | Ray Milkey <ray@onlab.us> | Fri Mar 06 17:01:29 2015 +0000 |
tree | 14afc328cfdec48355f773ada945a46e4fa7c2a1 | |
parent | 233a18aeebebee7afa8acfaa4e7494759544581b [diff] [blame] |
Updates to ECM interface Change-Id: Ie0cae42ac2b361cf3b94e5047c157cb0945f4209 Adding origin to IntentData and use it to pick GossipIntentStore peer Change-Id: I50e9621a69a35ec02b8c8dd79cc926591e5a73e9
diff --git a/core/store/dist/src/main/java/org/onosproject/store/intent/impl/PartitionService.java b/core/store/dist/src/main/java/org/onosproject/store/intent/impl/PartitionService.java index eaeabab1..2ee4434 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/intent/impl/PartitionService.java +++ b/core/store/dist/src/main/java/org/onosproject/store/intent/impl/PartitionService.java
@@ -15,6 +15,7 @@ */ package org.onosproject.store.intent.impl; +import org.onosproject.cluster.NodeId; import org.onosproject.net.intent.Key; /** @@ -31,5 +32,13 @@ */ boolean isMine(Key intentKey); + /** + * Returns the leader for a particular key. + * + * @param intentKey intent key to query + * @return the leader node + */ + NodeId getLeader(Key intentKey); + // TODO add API for rebalancing partitions }