Class AbstractDataStore
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.AbstractDataStore
-
- All Implemented Interfaces:
AutoCloseable,EventListener,DatastoreContextPropertiesUpdater.Listener,DistributedDataStoreInterface,org.opendaylight.mdsal.dom.api.DOMDataBrokerExtension,org.opendaylight.mdsal.dom.api.DOMDataTreeCommitCohortRegistry,org.opendaylight.mdsal.dom.api.DOMServiceExtension<org.opendaylight.mdsal.dom.api.DOMDataBroker,org.opendaylight.mdsal.dom.api.DOMDataBrokerExtension>,org.opendaylight.mdsal.dom.spi.store.DOMStore,org.opendaylight.mdsal.dom.spi.store.DOMStoreTransactionFactory,org.opendaylight.mdsal.dom.spi.store.DOMStoreTreeChangePublisher,org.opendaylight.yangtools.yang.model.api.EffectiveModelContextListener
- Direct Known Subclasses:
ClientBackedDataStore,DistributedDataStore
public abstract class AbstractDataStore extends Object implements DistributedDataStoreInterface, org.opendaylight.yangtools.yang.model.api.EffectiveModelContextListener, DatastoreContextPropertiesUpdater.Listener, org.opendaylight.mdsal.dom.spi.store.DOMStoreTreeChangePublisher, org.opendaylight.mdsal.dom.api.DOMDataTreeCommitCohortRegistry, AutoCloseable
Base implementation of a distributed DOMStore.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDataStore(akka.actor.ActorSystem actorSystem, ClusterWrapper cluster, Configuration configuration, DatastoreContextFactory datastoreContextFactory, DatastoreSnapshot restoreFromSnapshot)protectedAbstractDataStore(ActorUtils actorUtils, org.opendaylight.controller.cluster.access.concepts.ClientIdentifier identifier)protectedAbstractDataStore(ActorUtils actorUtils, org.opendaylight.controller.cluster.access.concepts.ClientIdentifier identifier, DataStoreClient clientActor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanawaitReadiness()Deprecated.voidawaitReadiness(long timeout, TimeUnit unit)Deprecated.booleanawaitReadiness(scala.concurrent.duration.Duration toWait)Deprecated.voidclose()ActorUtilsgetActorUtils()protected DataStoreClientgetClient()protected AbstractShardManagerCreator<?>getShardManagerCreator()com.google.common.util.concurrent.ListenableFuture<?>initialSettleFuture()Future which completes when all shards settle for the first time.voidonDatastoreContextUpdated(DatastoreContextFactory contextFactory)voidonModelContextUpdated(org.opendaylight.yangtools.yang.model.api.EffectiveModelContext newModelContext)<C extends org.opendaylight.mdsal.dom.api.DOMDataTreeCommitCohort>
org.opendaylight.mdsal.dom.api.DOMDataTreeCommitCohortRegistration<C>registerCommitCohort(org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier subtree, C cohort)<L extends org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener>
org.opendaylight.yangtools.concepts.ListenerRegistration<L>registerProxyListener(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier shardLookup, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier insideShard, org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener delegate)<L extends org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener>
org.opendaylight.yangtools.concepts.ListenerRegistration<L>registerTreeChangeListener(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier treeId, L listener)voidsetCloseable(AutoCloseable closeable)voidwaitTillReady()Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AbstractDataStore
protected AbstractDataStore(akka.actor.ActorSystem actorSystem, ClusterWrapper cluster, Configuration configuration, DatastoreContextFactory datastoreContextFactory, DatastoreSnapshot restoreFromSnapshot)
-
AbstractDataStore
protected AbstractDataStore(ActorUtils actorUtils, org.opendaylight.controller.cluster.access.concepts.ClientIdentifier identifier)
-
AbstractDataStore
protected AbstractDataStore(ActorUtils actorUtils, org.opendaylight.controller.cluster.access.concepts.ClientIdentifier identifier, DataStoreClient clientActor)
-
-
Method Detail
-
getShardManagerCreator
protected AbstractShardManagerCreator<?> getShardManagerCreator()
-
getClient
protected final DataStoreClient getClient()
-
setCloseable
public void setCloseable(AutoCloseable closeable)
-
registerTreeChangeListener
public <L extends org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener> org.opendaylight.yangtools.concepts.ListenerRegistration<L> registerTreeChangeListener(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier treeId, L listener)- Specified by:
registerTreeChangeListenerin interfaceorg.opendaylight.mdsal.dom.spi.store.DOMStoreTreeChangePublisher
-
registerCommitCohort
public <C extends org.opendaylight.mdsal.dom.api.DOMDataTreeCommitCohort> org.opendaylight.mdsal.dom.api.DOMDataTreeCommitCohortRegistration<C> registerCommitCohort(org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier subtree, C cohort)- Specified by:
registerCommitCohortin interfaceorg.opendaylight.mdsal.dom.api.DOMDataTreeCommitCohortRegistry
-
onModelContextUpdated
public void onModelContextUpdated(org.opendaylight.yangtools.yang.model.api.EffectiveModelContext newModelContext)
- Specified by:
onModelContextUpdatedin interfaceorg.opendaylight.yangtools.yang.model.api.EffectiveModelContextListener
-
onDatastoreContextUpdated
public void onDatastoreContextUpdated(DatastoreContextFactory contextFactory)
- Specified by:
onDatastoreContextUpdatedin interfaceDatastoreContextPropertiesUpdater.Listener
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
getActorUtils
public ActorUtils getActorUtils()
- Specified by:
getActorUtilsin interfaceDistributedDataStoreInterface
-
waitTillReady
@Deprecated public void waitTillReady()
Deprecated.
-
awaitReadiness
@Beta @Deprecated public boolean awaitReadiness() throws InterruptedException
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
public final com.google.common.util.concurrent.ListenableFuture<?> initialSettleFuture()
Future which completes when all shards settle for the first time.- Returns:
- A Listenable future.
-
registerProxyListener
public <L extends org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener> org.opendaylight.yangtools.concepts.ListenerRegistration<L> registerProxyListener(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier shardLookup, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier insideShard, org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener delegate)- Specified by:
registerProxyListenerin interfaceDistributedDataStoreInterface
-
-