Interface FlowObjectiveStore
- 
- All Superinterfaces:
- Store<ObjectiveEvent,FlowObjectiveStoreDelegate>
 
 @Beta public interface FlowObjectiveStore extends Store<ObjectiveEvent,FlowObjectiveStoreDelegate> The flow objective store.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intallocateNextId()Allocates a next objective id.java.util.Map<java.lang.Integer,NextGroup>getAllGroups()Fetch all groups from the store and their mapping to nextIds.NextGroupgetNextGroup(java.lang.Integer nextId)Fetch a next group from the store.voidputNextGroup(java.lang.Integer nextId, NextGroup group)Adds a NextGroup to the store, by mapping it to the nextId as key, and replacing any previous mapping.NextGroupremoveNextGroup(java.lang.Integer nextId)Remove a next group mapping from the store.- 
Methods inherited from interface org.onosproject.store.StorehasDelegate, setDelegate, unsetDelegate
 
- 
 
- 
- 
- 
Method Detail- 
putNextGroupvoid putNextGroup(java.lang.Integer nextId, NextGroup group)Adds a NextGroup to the store, by mapping it to the nextId as key, and replacing any previous mapping.- Parameters:
- nextId- an integer
- group- a next group opaque object
 
 - 
getNextGroupNextGroup getNextGroup(java.lang.Integer nextId) Fetch a next group from the store.- Parameters:
- nextId- an integer used as key
- Returns:
- a next group, or null if group was not found
 
 - 
removeNextGroupNextGroup removeNextGroup(java.lang.Integer nextId) Remove a next group mapping from the store.- Parameters:
- nextId- the key to remove from the store.
- Returns:
- the next group which mapped to the nextId and is now removed, or null if no group mapping existed in the store
 
 - 
getAllGroupsjava.util.Map<java.lang.Integer,NextGroup> getAllGroups() Fetch all groups from the store and their mapping to nextIds.- Returns:
- a map that represents the current snapshot of Next-ids to NextGroups
 
 - 
allocateNextIdint allocateNextId() Allocates a next objective id. This id is globally unique- Returns:
- an integer
 
 
- 
 
-