public interface VirtualNetworkFlowObjectiveStore extends VirtualStore<ObjectiveEvent,FlowObjectiveStoreDelegate>
Modifier and Type | Method and Description |
---|---|
int |
allocateNextId(NetworkId networkId)
Allocates a next objective id.
|
java.util.Map<java.lang.Integer,NextGroup> |
getAllGroups(NetworkId networkId)
Fetch all groups from the store and their mapping to nextIds.
|
NextGroup |
getNextGroup(NetworkId networkId,
java.lang.Integer nextId)
Fetch a next group from the store.
|
void |
putNextGroup(NetworkId networkId,
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.
|
NextGroup |
removeNextGroup(NetworkId networkId,
java.lang.Integer nextId)
Remove a next group mapping from the store.
|
hasDelegate, setDelegate, unsetDelegate
void putNextGroup(NetworkId networkId, java.lang.Integer nextId, NextGroup group)
networkId
- a virtual network identifiernextId
- an integergroup
- a next group opaque objectNextGroup getNextGroup(NetworkId networkId, java.lang.Integer nextId)
networkId
- a virtual network identifiernextId
- an integer used as keyNextGroup removeNextGroup(NetworkId networkId, java.lang.Integer nextId)
networkId
- a virtual network identifiernextId
- the key to remove from the store.java.util.Map<java.lang.Integer,NextGroup> getAllGroups(NetworkId networkId)
networkId
- a virtual network identifierint allocateNextId(NetworkId networkId)
networkId
- a virtual network identifier