Class AbstractDataStore
java.lang.Object
org.opendaylight.controller.cluster.datastore.AbstractDataStore
- All Implemented Interfaces:
AutoCloseable,EventListener,DatastoreContextPropertiesUpdater.Listener,DistributedDataStoreInterface,DOMDataBrokerExtension,DOMDataTreeCommitCohortRegistry,DOMServiceExtension<DOMDataBroker,,DOMDataBrokerExtension> DOMStore,DOMStoreTransactionFactory,DOMStoreTreeChangePublisher,EffectiveModelContextListener
- Direct Known Subclasses:
ClientBackedDataStore,DistributedDataStore
public abstract class AbstractDataStore
extends Object
implements DistributedDataStoreInterface, EffectiveModelContextListener, DatastoreContextPropertiesUpdater.Listener, DOMStoreTreeChangePublisher, DOMDataTreeCommitCohortRegistry, AutoCloseable
Base implementation of a distributed DOMStore.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDataStore(ActorSystem actorSystem, ClusterWrapper cluster, Configuration configuration, DatastoreContextFactory datastoreContextFactory, DatastoreSnapshot restoreFromSnapshot) protectedAbstractDataStore(ActorUtils actorUtils, ClientIdentifier identifier) protectedAbstractDataStore(ActorUtils actorUtils, ClientIdentifier identifier, DataStoreClient clientActor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.voidawaitReadiness(long timeout, TimeUnit unit) Deprecated.booleanawaitReadiness(scala.concurrent.duration.Duration toWait) Deprecated.voidclose()final ActorUtilsprotected final DataStoreClientprotected AbstractShardManagerCreator<?>final ListenableFuture<?>Future which completes when all shards settle for the first time.voidonDatastoreContextUpdated(DatastoreContextFactory contextFactory) voidonModelContextUpdated(EffectiveModelContext newModelContext) <C extends DOMDataTreeCommitCohort>
DOMDataTreeCommitCohortRegistration<C>registerCommitCohort(DOMDataTreeIdentifier subtree, C cohort) <L extends DOMDataTreeChangeListener>
ListenerRegistration<L>registerProxyListener(YangInstanceIdentifier shardLookup, YangInstanceIdentifier insideShard, DOMDataTreeChangeListener delegate) <L extends DOMDataTreeChangeListener>
ListenerRegistration<L>registerTreeChangeListener(YangInstanceIdentifier treeId, L listener) voidsetCloseable(AutoCloseable closeable) voidDeprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opendaylight.mdsal.dom.spi.store.DOMStore
createTransactionChainMethods inherited from interface org.opendaylight.mdsal.dom.spi.store.DOMStoreTransactionFactory
newReadOnlyTransaction, newReadWriteTransaction, newWriteOnlyTransaction
-
Constructor Details
-
AbstractDataStore
protected AbstractDataStore(ActorSystem actorSystem, ClusterWrapper cluster, Configuration configuration, DatastoreContextFactory datastoreContextFactory, DatastoreSnapshot restoreFromSnapshot) -
AbstractDataStore
-
AbstractDataStore
protected AbstractDataStore(ActorUtils actorUtils, ClientIdentifier identifier, DataStoreClient clientActor)
-
-
Method Details
-
getShardManagerCreator
-
getClient
-
setCloseable
-
registerTreeChangeListener
public <L extends DOMDataTreeChangeListener> ListenerRegistration<L> registerTreeChangeListener(YangInstanceIdentifier treeId, L listener) - Specified by:
registerTreeChangeListenerin interfaceDOMStoreTreeChangePublisher
-
registerCommitCohort
public <C extends DOMDataTreeCommitCohort> DOMDataTreeCommitCohortRegistration<C> registerCommitCohort(DOMDataTreeIdentifier subtree, C cohort) - Specified by:
registerCommitCohortin interfaceDOMDataTreeCommitCohortRegistry
-
onModelContextUpdated
- Specified by:
onModelContextUpdatedin interfaceEffectiveModelContextListener
-
onDatastoreContextUpdated
- Specified by:
onDatastoreContextUpdatedin interfaceDatastoreContextPropertiesUpdater.Listener
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getActorUtils
- Specified by:
getActorUtilsin interfaceDistributedDataStoreInterface
-
waitTillReady
Deprecated. -
awaitReadiness
Deprecated.- Throws:
InterruptedException
-
awaitReadiness
@Beta @Deprecated public boolean awaitReadiness(scala.concurrent.duration.Duration toWait) throws InterruptedException Deprecated.- Throws:
InterruptedException
-
awaitReadiness
@Beta @Deprecated public void awaitReadiness(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException Deprecated.- Throws:
InterruptedExceptionTimeoutException
-
initialSettleFuture
Future which completes when all shards settle for the first time.- Returns:
- A Listenable future.
-
registerProxyListener
public <L extends DOMDataTreeChangeListener> ListenerRegistration<L> registerProxyListener(YangInstanceIdentifier shardLookup, YangInstanceIdentifier insideShard, DOMDataTreeChangeListener delegate) - Specified by:
registerProxyListenerin interfaceDistributedDataStoreInterface
-