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,EffectiveModelContextListener
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 voidclose()DOMStoreTransactionChaincreateTransactionChain()DOMStoreReadTransactionnewReadOnlyTransaction()DOMStoreReadWriteTransactionnewReadWriteTransaction()DOMStoreWriteTransactionnewWriteOnlyTransaction()-
Methods inherited from class org.opendaylight.controller.cluster.datastore.AbstractDataStore
awaitReadiness, getActorUtils, getClient, getShardManagerCreator, getWaitTillReadyCountDownLatch, onDatastoreContextUpdated, onModelContextUpdated, 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:
closein interfaceAutoCloseable- Overrides:
closein classAbstractDataStore
-
-