Package org.onosproject.store
Interface Store<E extends Event,D extends StoreDelegate<E>>
-
- All Known Subinterfaces:
ApplicationStore
,ClusterStore
,ComponentConfigStore
,ControlMessageStore
,DeviceKeyStore
,DeviceStore
,FlowObjectiveStore
,FlowRuleStore
,GroupStore
,HostProbeStore
,HostStore
,IntentStore
,LeadershipStore
,LinkStore
,MastershipStore
,McastStore
,MeterStore
,NetworkConfigStore
,PacketStore
,PiFlowRuleTranslationStore
,PiGroupTranslationStore
,PiMeterTranslationStore
,PiPipeconfMappingStore
,PiReplicationGroupTranslationStore
,PiTranslationStore<T,E>
,RegionStore
,ResourceStore
,TopologyStore
- All Known Implementing Classes:
AbstractStore
,ApplicationArchive
,DistributedApplicationStore
,DistributedComponentConfigStore
public interface Store<E extends Event,D extends StoreDelegate<E>>
Abstraction of a entity capable of storing and/or distributing information across a cluster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasDelegate()
Indicates whether the store has a delegate.void
setDelegate(D delegate)
Sets the delegate on the store.void
unsetDelegate(D delegate)
Withdraws the delegate from the store.
-
-
-
Method Detail
-
setDelegate
void setDelegate(D delegate)
Sets the delegate on the store.- Parameters:
delegate
- new store delegate- Throws:
IllegalStateException
- if a delegate is already currently set on the store and is a different one that
-
unsetDelegate
void unsetDelegate(D delegate)
Withdraws the delegate from the store.- Parameters:
delegate
- store delegate to withdraw- Throws:
IllegalArgumentException
- if the delegate is not currently set on the store
-
hasDelegate
boolean hasDelegate()
Indicates whether the store has a delegate.- Returns:
- true if delegate is set
-
-