Class DistributedDataStore
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.AbstractDataStore
-
- org.opendaylight.controller.cluster.datastore.DistributedDataStore
-
- All Implemented Interfaces:
AutoCloseable
,EventListener
,DatastoreContextPropertiesUpdater.Listener
,DistributedDataStoreInterface
,DOMDataBrokerExtension
,DOMDataTreeCommitCohortRegistry
,DOMServiceExtension<DOMDataBroker,DOMDataBrokerExtension>
,DOMStore
,DOMStoreTransactionFactory
,DOMStoreTreeChangePublisher
,SchemaContextListener
public class DistributedDataStore extends AbstractDataStore
Implements a distributed DOMStore using Akka Patterns.ask().
-
-
Constructor Summary
Constructors Constructor Description DistributedDataStore(ActorSystem actorSystem, ClusterWrapper cluster, Configuration configuration, DatastoreContextFactory datastoreContextFactory, DatastoreSnapshot restoreFromSnapshot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
DOMStoreTransactionChain
createTransactionChain()
DOMStoreReadTransaction
newReadOnlyTransaction()
DOMStoreReadWriteTransaction
newReadWriteTransaction()
DOMStoreWriteTransaction
newWriteOnlyTransaction()
-
Methods inherited from class org.opendaylight.controller.cluster.datastore.AbstractDataStore
awaitReadiness, getActorUtils, getClient, getShardManagerCreator, getWaitTillReadyCountDownLatch, onDatastoreContextUpdated, onGlobalContextUpdated, registerCommitCohort, registerProxyListener, registerShardConfigListener, registerTreeChangeListener, setCloseable, waitTillReady
-
-
-
-
Constructor Detail
-
DistributedDataStore
public DistributedDataStore(ActorSystem actorSystem, ClusterWrapper cluster, Configuration configuration, DatastoreContextFactory datastoreContextFactory, DatastoreSnapshot restoreFromSnapshot)
-
-
Method Detail
-
createTransactionChain
public DOMStoreTransactionChain createTransactionChain()
-
newReadOnlyTransaction
public DOMStoreReadTransaction newReadOnlyTransaction()
-
newWriteOnlyTransaction
public DOMStoreWriteTransaction newWriteOnlyTransaction()
-
newReadWriteTransaction
public DOMStoreReadWriteTransaction newReadWriteTransaction()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classAbstractDataStore
-
-