@Service public class SimpleVirtualFlowObjectiveStore extends AbstractVirtualStore<org.onosproject.net.flowobjective.ObjectiveEvent,org.onosproject.net.flowobjective.FlowObjectiveStoreDelegate> implements VirtualNetworkFlowObjectiveStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.StorageService |
storageService |
delegateMap| Constructor and Description |
|---|
SimpleVirtualFlowObjectiveStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
int |
allocateNextId(NetworkId networkId)
Allocates a next objective id.
|
void |
deactivate() |
java.util.Map<java.lang.Integer,org.onosproject.net.behaviour.NextGroup> |
getAllGroups(NetworkId networkId)
Fetch all groups from the store and their mapping to nextIds.
|
org.onosproject.net.behaviour.NextGroup |
getNextGroup(NetworkId networkId,
java.lang.Integer nextId)
Fetch a next group from the store.
|
protected java.util.concurrent.ConcurrentMap<java.lang.Integer,byte[]> |
getNextGroups(NetworkId networkId) |
protected void |
initNextGroupsMap() |
void |
putNextGroup(NetworkId networkId,
java.lang.Integer nextId,
org.onosproject.net.behaviour.NextGroup group)
Adds a NextGroup to the store, by mapping it to the nextId as key,
and replacing any previous mapping.
|
org.onosproject.net.behaviour.NextGroup |
removeNextGroup(NetworkId networkId,
java.lang.Integer nextId)
Remove a next group mapping from the store.
|
protected void |
updateNextGroupsMap(NetworkId networkId,
java.util.concurrent.ConcurrentMap<java.lang.Integer,byte[]> nextGroups) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasDelegate, setDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Activate public void activate()
public void deactivate()
protected void initNextGroupsMap()
protected void updateNextGroupsMap(NetworkId networkId, java.util.concurrent.ConcurrentMap<java.lang.Integer,byte[]> nextGroups)
protected java.util.concurrent.ConcurrentMap<java.lang.Integer,byte[]> getNextGroups(NetworkId networkId)
public void putNextGroup(NetworkId networkId, java.lang.Integer nextId, org.onosproject.net.behaviour.NextGroup group)
VirtualNetworkFlowObjectiveStoreputNextGroup in interface VirtualNetworkFlowObjectiveStorenetworkId - a virtual network identifiernextId - an integergroup - a next group opaque objectpublic org.onosproject.net.behaviour.NextGroup getNextGroup(NetworkId networkId, java.lang.Integer nextId)
VirtualNetworkFlowObjectiveStoregetNextGroup in interface VirtualNetworkFlowObjectiveStorenetworkId - a virtual network identifiernextId - an integer used as keypublic org.onosproject.net.behaviour.NextGroup removeNextGroup(NetworkId networkId, java.lang.Integer nextId)
VirtualNetworkFlowObjectiveStoreremoveNextGroup in interface VirtualNetworkFlowObjectiveStorenetworkId - a virtual network identifiernextId - the key to remove from the store.public java.util.Map<java.lang.Integer,org.onosproject.net.behaviour.NextGroup> getAllGroups(NetworkId networkId)
VirtualNetworkFlowObjectiveStoregetAllGroups in interface VirtualNetworkFlowObjectiveStorenetworkId - a virtual network identifierpublic int allocateNextId(NetworkId networkId)
VirtualNetworkFlowObjectiveStoreallocateNextId in interface VirtualNetworkFlowObjectiveStorenetworkId - a virtual network identifier