Package org.onosproject.net.pi.service
Interface PiTranslationStore<T extends PiTranslatable,E extends PiEntity>
-
- Type Parameters:
T
- PD entity class (translatable to PI)E
- PI entity class
- All Superinterfaces:
Store<PiTranslationEvent<T,E>,PiTranslationStoreDelegate<T,E>>
- All Known Subinterfaces:
PiFlowRuleTranslationStore
,PiGroupTranslationStore
,PiMeterTranslationStore
,PiReplicationGroupTranslationStore
@Beta public interface PiTranslationStore<T extends PiTranslatable,E extends PiEntity> extends Store<PiTranslationEvent<T,E>,PiTranslationStoreDelegate<T,E>>
PI translation store abstraction that maintains a mapping between a PI entity handle and a translated entity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addOrUpdate(PiHandle handle, PiTranslatedEntity<T,E> entity)
Adds or update a mapping between the given PI entity handle and translated entity.PiTranslatedEntity<T,E>
get(PiHandle handle)
Returns a PI translated entity for the given handle.void
remove(PiHandle handle)
Removes a previously added mapping for the given PI entity handle.-
Methods inherited from interface org.onosproject.store.Store
hasDelegate, setDelegate, unsetDelegate
-
-
-
-
Method Detail
-
addOrUpdate
void addOrUpdate(PiHandle handle, PiTranslatedEntity<T,E> entity)
Adds or update a mapping between the given PI entity handle and translated entity.- Parameters:
handle
- PI entity handleentity
- PI translated entity
-
get
PiTranslatedEntity<T,E> get(PiHandle handle)
Returns a PI translated entity for the given handle. Returns null if this store does not contain a mapping between the two for the given pipeconf ID.- Parameters:
handle
- PI entity handle- Returns:
- PI translated entity
-
remove
void remove(PiHandle handle)
Removes a previously added mapping for the given PI entity handle.- Parameters:
handle
- PI entity handle
-
-