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.SchemaContextListener
- Direct Known Subclasses:
ClientBackedDataStore,DistributedDataStore
public abstract class AbstractDataStore extends Object implements DistributedDataStoreInterface, org.opendaylight.yangtools.yang.model.api.SchemaContextListener, 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 Modifier and Type Method Description voidawaitReadiness(long timeout, TimeUnit unit)voidclose()ActorUtilsgetActorUtils()protected DataStoreClientgetClient()protected AbstractShardManagerCreator<?>getShardManagerCreator()CountDownLatchgetWaitTillReadyCountDownLatch()voidonDatastoreContextUpdated(DatastoreContextFactory contextFactory)voidonGlobalContextUpdated(org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)<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>registerShardConfigListener(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier internalPath, 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()-
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
-
onGlobalContextUpdated
public void onGlobalContextUpdated(org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
- Specified by:
onGlobalContextUpdatedin interfaceorg.opendaylight.yangtools.yang.model.api.SchemaContextListener
-
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
public void waitTillReady()
-
awaitReadiness
@Beta public void awaitReadiness(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException- Throws:
InterruptedExceptionTimeoutException
-
getWaitTillReadyCountDownLatch
public CountDownLatch getWaitTillReadyCountDownLatch()
-
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)
-
registerShardConfigListener
public <L extends org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener> org.opendaylight.yangtools.concepts.ListenerRegistration<L> registerShardConfigListener(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier internalPath, org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener delegate)
-
-