Package org.onosproject.store.pi.impl
Class AbstractDistributedPiTranslationStore<T extends org.onosproject.net.pi.service.PiTranslatable,E extends org.onosproject.net.pi.runtime.PiEntity>
- java.lang.Object
-
- org.onosproject.store.AbstractStore<org.onosproject.net.pi.service.PiTranslationEvent<T,E>,org.onosproject.net.pi.service.PiTranslationStoreDelegate<T,E>>
-
- org.onosproject.store.pi.impl.AbstractDistributedPiTranslationStore<T,E>
-
- All Implemented Interfaces:
org.onosproject.net.pi.service.PiTranslationStore<T,E>,org.onosproject.store.Store<org.onosproject.net.pi.service.PiTranslationEvent<T,E>,org.onosproject.net.pi.service.PiTranslationStoreDelegate<T,E>>
- Direct Known Subclasses:
DistributedPiFlowRuleTranslationStore,DistributedPiGroupTranslationStore,DistributedPiMeterTranslationStore,DistributedPiReplicationGroupTranslationStore
public abstract class AbstractDistributedPiTranslationStore<T extends org.onosproject.net.pi.service.PiTranslatable,E extends org.onosproject.net.pi.runtime.PiEntity> extends org.onosproject.store.AbstractStore<org.onosproject.net.pi.service.PiTranslationEvent<T,E>,org.onosproject.net.pi.service.PiTranslationStoreDelegate<T,E>> implements org.onosproject.net.pi.service.PiTranslationStore<T,E>Distributed implementation of PiTranslationStore.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.onosproject.store.service.StorageServicestorageService
-
Constructor Summary
Constructors Constructor Description AbstractDistributedPiTranslationStore()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidactivate()voidaddOrUpdate(org.onosproject.net.pi.runtime.PiHandle handle, org.onosproject.net.pi.service.PiTranslatedEntity<T,E> entity)voiddeactivate()org.onosproject.net.pi.service.PiTranslatedEntity<T,E>get(org.onosproject.net.pi.runtime.PiHandle handle)java.lang.Iterable<org.onosproject.net.pi.service.PiTranslatedEntity<T,E>>getAll()protected abstract java.lang.StringmapSimpleName()Returns a string that identifies the map maintained by this store among others that uses this abstract class.voidremove(org.onosproject.net.pi.runtime.PiHandle handle)-
Methods inherited from class org.onosproject.store.AbstractStore
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate
-
-
-
-
Method Detail
-
mapSimpleName
protected abstract java.lang.String mapSimpleName()
Returns a string that identifies the map maintained by this store among others that uses this abstract class.- Returns:
- string
-
activate
public void activate()
-
deactivate
public void deactivate()
-
addOrUpdate
public void addOrUpdate(org.onosproject.net.pi.runtime.PiHandle handle, org.onosproject.net.pi.service.PiTranslatedEntity<T,E> entity)
-
remove
public void remove(org.onosproject.net.pi.runtime.PiHandle handle)
-
get
public org.onosproject.net.pi.service.PiTranslatedEntity<T,E> get(org.onosproject.net.pi.runtime.PiHandle handle)
-
-