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>
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
AbstractDistributedPiTranslationStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addOrUpdate(org.onosproject.net.pi.runtime.PiHandle handle,
org.onosproject.net.pi.service.PiTranslatedEntity<T,E> entity) |
void |
deactivate() |
org.onosproject.net.pi.service.PiTranslatedEntity<T,E> |
get(org.onosproject.net.pi.runtime.PiHandle handle) |
Iterable<org.onosproject.net.pi.service.PiTranslatedEntity<T,E>> |
getAll() |
protected abstract String |
mapSimpleName()
Returns a string that identifies the map maintained by this store among
others that uses this abstract class.
|
void |
remove(org.onosproject.net.pi.runtime.PiHandle handle) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegatepublic AbstractDistributedPiTranslationStore()
protected abstract String mapSimpleName()
public void activate()
public void deactivate()
public void addOrUpdate(org.onosproject.net.pi.runtime.PiHandle handle,
org.onosproject.net.pi.service.PiTranslatedEntity<T,E> entity)
public void remove(org.onosproject.net.pi.runtime.PiHandle handle)
public org.onosproject.net.pi.service.PiTranslatedEntity<T,E> get(org.onosproject.net.pi.runtime.PiHandle handle)