Search in sources :

Example 6 with BindingTransactionChain

use of org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain in project openflowplugin by opendaylight.

the class TransactionChainManager method createTxChain.

@GuardedBy("txLock")
private void createTxChain() {
    BindingTransactionChain txChainFactoryTemp = transactionChain;
    transactionChain = dataBroker.createTransactionChain(TransactionChainManager.this);
    Optional.ofNullable(txChainFactoryTemp).ifPresent(TransactionChain::close);
}
Also used : BindingTransactionChain(org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain) TransactionChain(org.opendaylight.controller.md.sal.common.api.data.TransactionChain) BindingTransactionChain(org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain) GuardedBy(javax.annotation.concurrent.GuardedBy)

Aggregations

BindingTransactionChain (org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain)6 WriteTransaction (org.opendaylight.controller.md.sal.binding.api.WriteTransaction)2 LogicalDatastoreType (org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType)2 TransactionCommitFailedException (org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException)2 TestExec (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.dsbenchmark.rev150105.TestExec)2 OuterList (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.dsbenchmark.rev150105.test.exec.OuterList)2 GuardedBy (javax.annotation.concurrent.GuardedBy)1 Before (org.junit.Before)1 TransactionChain (org.opendaylight.controller.md.sal.common.api.data.TransactionChain)1 PathSelectionMode (org.opendaylight.protocol.bgp.mode.api.PathSelectionMode)1 RIBSupport (org.opendaylight.protocol.bgp.rib.spi.RIBSupport)1 OuterListKey (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.dsbenchmark.rev150105.test.exec.OuterListKey)1