Class DistributedFlowObjectiveStore
- java.lang.Object
-
- org.onosproject.store.AbstractStore<org.onosproject.net.flowobjective.ObjectiveEvent,org.onosproject.net.flowobjective.FlowObjectiveStoreDelegate>
-
- org.onosproject.store.flowobjective.impl.DistributedFlowObjectiveStore
-
- All Implemented Interfaces:
org.onosproject.net.flowobjective.FlowObjectiveStore,org.onosproject.store.Store<org.onosproject.net.flowobjective.ObjectiveEvent,org.onosproject.net.flowobjective.FlowObjectiveStoreDelegate>
public class DistributedFlowObjectiveStore extends org.onosproject.store.AbstractStore<org.onosproject.net.flowobjective.ObjectiveEvent,org.onosproject.net.flowobjective.FlowObjectiveStoreDelegate> implements org.onosproject.net.flowobjective.FlowObjectiveStoreManages the inventory of created next groups.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.onosproject.store.service.StorageServicestorageService
-
Constructor Summary
Constructors Constructor Description DistributedFlowObjectiveStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()intallocateNextId()voiddeactivate()java.util.Map<java.lang.Integer,org.onosproject.net.behaviour.NextGroup>getAllGroups()org.onosproject.net.behaviour.NextGroupgetNextGroup(java.lang.Integer nextId)voidputNextGroup(java.lang.Integer nextId, org.onosproject.net.behaviour.NextGroup group)org.onosproject.net.behaviour.NextGroupremoveNextGroup(java.lang.Integer nextId)-
Methods inherited from class org.onosproject.store.AbstractStore
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate
-
-
-
-
Method Detail
-
activate
public void activate()
-
deactivate
public void deactivate()
-
putNextGroup
public void putNextGroup(java.lang.Integer nextId, org.onosproject.net.behaviour.NextGroup group)- Specified by:
putNextGroupin interfaceorg.onosproject.net.flowobjective.FlowObjectiveStore
-
getNextGroup
public org.onosproject.net.behaviour.NextGroup getNextGroup(java.lang.Integer nextId)
- Specified by:
getNextGroupin interfaceorg.onosproject.net.flowobjective.FlowObjectiveStore
-
removeNextGroup
public org.onosproject.net.behaviour.NextGroup removeNextGroup(java.lang.Integer nextId)
- Specified by:
removeNextGroupin interfaceorg.onosproject.net.flowobjective.FlowObjectiveStore
-
getAllGroups
public java.util.Map<java.lang.Integer,org.onosproject.net.behaviour.NextGroup> getAllGroups()
- Specified by:
getAllGroupsin interfaceorg.onosproject.net.flowobjective.FlowObjectiveStore
-
allocateNextId
public int allocateNextId()
- Specified by:
allocateNextIdin interfaceorg.onosproject.net.flowobjective.FlowObjectiveStore
-
-