Uses of Class
org.opendaylight.genius.infra.Datastore
-
Packages that use Datastore Package Description org.opendaylight.genius.infra Incubator package for new infrastructure utility code which will be proposed into upstream projects once merged and proven to be useful here for a while.org.opendaylight.genius.utils.hwvtep -
-
Uses of Datastore in org.opendaylight.genius.infra
Classes in org.opendaylight.genius.infra with type parameters of type Datastore Modifier and Type Interface Description interface
TypedReadTransaction<D extends Datastore>
Read transaction which is specific to a single logical datastore (configuration or operational).interface
TypedReadWriteTransaction<D extends Datastore>
Read-write transaction which is specific to a single logical datastore (configuration or operational).interface
TypedWriteTransaction<D extends Datastore>
Write transaction which is specific to a single logical datastore (configuration or operational).Subclasses of Datastore in org.opendaylight.genius.infra Modifier and Type Class Description static class
Datastore.Configuration
static class
Datastore.Operational
Methods in org.opendaylight.genius.infra with type parameters of type Datastore Modifier and Type Method Description <D extends Datastore,E extends java.lang.Exception,R>
RManagedTransactionFactory. applyWithNewReadOnlyTransactionAndClose(java.lang.Class<D> datastoreType, org.opendaylight.infrautils.utils.function.InterruptibleCheckedFunction<TypedReadTransaction<D>,R,E> txFunction)
Invokes a function with a NEWTypedReadTransaction
, and ensures that that transaction is closed.<D extends Datastore,E extends java.lang.Exception,R>
com.google.common.util.concurrent.FluentFuture<R>ManagedNewTransactionRunnerImpl. applyWithNewReadWriteTransactionAndSubmit(java.lang.Class<D> datastoreType, org.opendaylight.infrautils.utils.function.InterruptibleCheckedFunction<TypedReadWriteTransaction<D>,R,E> txFunction)
<D extends Datastore,E extends java.lang.Exception,R>
com.google.common.util.concurrent.FluentFuture<R>ManagedTransactionFactory. applyWithNewReadWriteTransactionAndSubmit(java.lang.Class<D> datastoreType, org.opendaylight.infrautils.utils.function.InterruptibleCheckedFunction<TypedReadWriteTransaction<D>,R,E> txFunction)
Invokes a function with a NEWReadWriteTransaction
, and then submits that transaction and returns the Future from that submission, or cancels it if an exception was thrown and returns a failed future with that exception.<D extends Datastore,E extends java.lang.Exception>
voidManagedTransactionFactory. callWithNewReadOnlyTransactionAndClose(java.lang.Class<D> datastoreType, org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedReadTransaction<D>,E> txConsumer)
Invokes a function with a NEWReadTransaction
, and ensures that that transaction is closed.<D extends Datastore,E extends java.lang.Exception>
com.google.common.util.concurrent.FluentFuture<java.lang.Void>ManagedNewTransactionRunnerImpl. callWithNewReadWriteTransactionAndSubmit(java.lang.Class<D> datastoreType, org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedReadWriteTransaction<D>,E> txConsumer)
<D extends Datastore,E extends java.lang.Exception>
com.google.common.util.concurrent.FluentFuture<java.lang.Void>ManagedTransactionFactory. callWithNewReadWriteTransactionAndSubmit(java.lang.Class<D> datastoreType, org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedReadWriteTransaction<D>,E> txConsumer)
Invokes a consumer with a NEWReadWriteTransaction
, and then submits that transaction and returns the Future from that submission, or cancels it if an exception was thrown and returns a failed future with that exception.<D extends Datastore,E extends java.lang.Exception>
com.google.common.util.concurrent.FluentFuture<java.lang.Void>ManagedNewTransactionRunnerImpl. callWithNewWriteOnlyTransactionAndSubmit(java.lang.Class<D> datastoreType, org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedWriteTransaction<D>,E> txConsumer)
<D extends Datastore,E extends java.lang.Exception>
com.google.common.util.concurrent.FluentFuture<java.lang.Void>ManagedTransactionFactory. callWithNewWriteOnlyTransactionAndSubmit(java.lang.Class<D> datastoreType, org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedWriteTransaction<D>,E> txConsumer)
Invokes a consumer with a NEWWriteTransaction
, and then submits that transaction and returns the Future from that submission, or cancels it if an exception was thrown and returns a failed future with that exception.Methods in org.opendaylight.genius.infra that return types with arguments of type Datastore Modifier and Type Method Description static java.lang.Class<? extends Datastore>
Datastore. toClass(org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType)
Returns the datastore class corresponding to the given logical datastore type.Method parameters in org.opendaylight.genius.infra with type arguments of type Datastore Modifier and Type Method Description static org.opendaylight.mdsal.binding.api.ReadWriteTransaction
TransactionAdapter. toReadWriteTransaction(TypedReadWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.Adapts the given datastore-constrained read-write transaction to a generic read-write transaction.static org.opendaylight.mdsal.common.api.LogicalDatastoreType
Datastore. toType(java.lang.Class<? extends Datastore> datastoreClass)
Returns the logical datastore type corresponding to the given datastore class.static org.opendaylight.mdsal.binding.api.WriteTransaction
TransactionAdapter. toWriteTransaction(TypedWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.Adapts the given datastore-constrained write transaction to a generic write transaction. -
Uses of Datastore in org.opendaylight.genius.utils.hwvtep
Method parameters in org.opendaylight.genius.utils.hwvtep with type arguments of type Datastore Modifier and Type Method Description static void
HwvtepUtils. addRemoteMcastMac(TypedWriteTransaction<? extends Datastore> tx, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId nodeId, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.RemoteMcastMacs remoteMcastMac)
Store a remote multicast MAC.static java.lang.String
HwvtepUtils. getDbVersion(TypedReadTransaction<? extends Datastore> tx, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId nodeId)
Retrieves the database version, as indicated by the hardware VTEP node.static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node
HwvtepUtils. getHwVtepNode(TypedReadTransaction<? extends Datastore> tx, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId nodeId)
Retrieves the hardware VTEP node.static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.RemoteMcastMacs
HwvtepUtils. getRemoteMcastMac(TypedReadTransaction<? extends Datastore> tx, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId nodeId, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.RemoteMcastMacsKey remoteMcastMacsKey)
Retrieve a remote multicast MAC.
-