Class AbstractDataStore
java.lang.Object
org.opendaylight.controller.cluster.datastore.AbstractDataStore
- All Implemented Interfaces:
AutoCloseable,DatastoreContextPropertiesUpdater.Listener,DistributedDataStoreInterface,DOMDataBroker.CommitCohortExtension,DOMDataBroker.Extension,DOMService.Extension<DOMDataBroker,,DOMDataBroker.Extension> DOMStore,DOMStoreTransactionFactory,DOMStoreTreeChangePublisher,ObjectExtension<DOMDataBroker,DOMDataBroker.Extension>
- Direct Known Subclasses:
ClientBackedDataStore
public abstract class AbstractDataStore
extends Object
implements DistributedDataStoreInterface, DatastoreContextPropertiesUpdater.Listener, DOMStoreTreeChangePublisher, DOMDataBroker.CommitCohortExtension, AutoCloseable
Base implementation of a distributed DOMStore.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDataStore(Path stateDir, ActorSystem actorSystem, ClusterWrapper cluster, Configuration configuration, DatastoreContextFactory datastoreContextFactory, DatastoreSnapshot restoreFromSnapshot) protectedAbstractDataStore(ActorUtils actorUtils, ClientIdentifier identifier, DataStoreClient clientActor) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.final voidawaitReadiness(long timeout, TimeUnit unit) Deprecated.final booleanawaitReadiness(scala.concurrent.duration.Duration toWait) Deprecated.final voidclose()final ActorUtilsprotected final DataStoreClientprotected AbstractShardManagerCreator<?> final ListenableFuture<?> Future which completes when all shards settle for the first time.final voidonDatastoreContextUpdated(DatastoreContextFactory contextFactory) voidonModelContextUpdated(EffectiveModelContext newModelContext) final SettableFuture<Empty> registerCommitCohort(DOMDataTreeIdentifier subtree, DOMDataTreeCommitCohort cohort) final RegistrationregisterLegacyTreeChangeListener(YangInstanceIdentifier treeId, DOMDataTreeChangeListener listener) Deprecated, for removal: This API element is subject to removal in a future version.final RegistrationregisterProxyListener(YangInstanceIdentifier shardLookup, YangInstanceIdentifier insideShard, DOMDataTreeChangeListener delegate) final RegistrationregisterTreeChangeListener(YangInstanceIdentifier treeId, DOMDataTreeChangeListener listener) voidsetCloseable(AutoCloseable closeable) final 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(Path stateDir, ActorSystem actorSystem, ClusterWrapper cluster, Configuration configuration, DatastoreContextFactory datastoreContextFactory, DatastoreSnapshot restoreFromSnapshot) -
AbstractDataStore
protected AbstractDataStore(ActorUtils actorUtils, ClientIdentifier identifier, DataStoreClient clientActor)
-
-
Method Details
-
getShardManagerCreator
-
getClient
-
setCloseable
-
registerTreeChangeListener
public final Registration registerTreeChangeListener(YangInstanceIdentifier treeId, DOMDataTreeChangeListener listener) - Specified by:
registerTreeChangeListenerin interfaceDOMStoreTreeChangePublisher
-
registerLegacyTreeChangeListener
@Deprecated(since="9.0.0", forRemoval=true) public final Registration registerLegacyTreeChangeListener(YangInstanceIdentifier treeId, DOMDataTreeChangeListener listener) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
registerLegacyTreeChangeListenerin interfaceDOMStoreTreeChangePublisher
-
registerCommitCohort
public Registration registerCommitCohort(DOMDataTreeIdentifier subtree, DOMDataTreeCommitCohort cohort) - Specified by:
registerCommitCohortin interfaceDOMDataBroker.CommitCohortExtension
-
onModelContextUpdated
-
onDatastoreContextUpdated
- Specified by:
onDatastoreContextUpdatedin interfaceDatastoreContextPropertiesUpdater.Listener
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-
getActorUtils
- Specified by:
getActorUtilsin interfaceDistributedDataStoreInterface
-
waitTillReady
Deprecated. -
awaitReadiness
Deprecated.- Throws:
InterruptedException
-
awaitReadiness
@Beta @Deprecated public final boolean awaitReadiness(scala.concurrent.duration.Duration toWait) throws InterruptedException Deprecated.- Throws:
InterruptedException
-
awaitReadiness
@Beta @Deprecated public final 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.
-
readinessFuture
-
registerProxyListener
public final Registration registerProxyListener(YangInstanceIdentifier shardLookup, YangInstanceIdentifier insideShard, DOMDataTreeChangeListener delegate) - Specified by:
registerProxyListenerin interfaceDistributedDataStoreInterface
-