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 |
Modifier and Type | Interface and 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).
|
Modifier and Type | Class and Description |
---|---|
static class |
Datastore.Configuration |
static class |
Datastore.Operational |
Modifier and Type | Method and Description |
---|---|
<D extends Datastore,E extends Exception,R> |
ManagedTransactionFactory.applyWithNewReadOnlyTransactionAndClose(Class<D> datastoreType,
org.opendaylight.infrautils.utils.function.InterruptibleCheckedFunction<TypedReadTransaction<D>,R,E> txFunction)
Invokes a function with a NEW
TypedReadTransaction , and ensures that that transaction is closed. |
<D extends Datastore,E extends Exception,R> |
ManagedTransactionFactory.applyWithNewReadWriteTransactionAndSubmit(Class<D> datastoreType,
org.opendaylight.infrautils.utils.function.InterruptibleCheckedFunction<TypedReadWriteTransaction<D>,R,E> txFunction)
Invokes a function with a NEW
ReadWriteTransaction , 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 Exception,R> |
ManagedNewTransactionRunnerImpl.applyWithNewReadWriteTransactionAndSubmit(Class<D> datastoreType,
org.opendaylight.infrautils.utils.function.InterruptibleCheckedFunction<TypedReadWriteTransaction<D>,R,E> txFunction) |
<D extends Datastore,E extends Exception> |
ManagedTransactionFactory.callWithNewReadOnlyTransactionAndClose(Class<D> datastoreType,
org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedReadTransaction<D>,E> txConsumer)
Invokes a function with a NEW
ReadTransaction , and ensures that that transaction is closed. |
<D extends Datastore,E extends Exception> |
ManagedTransactionFactory.callWithNewReadWriteTransactionAndSubmit(Class<D> datastoreType,
org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedReadWriteTransaction<D>,E> txConsumer)
Invokes a consumer with a NEW
ReadWriteTransaction , 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 Exception> |
ManagedNewTransactionRunnerImpl.callWithNewReadWriteTransactionAndSubmit(Class<D> datastoreType,
org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedReadWriteTransaction<D>,E> txConsumer) |
<D extends Datastore,E extends Exception> |
ManagedTransactionFactory.callWithNewWriteOnlyTransactionAndSubmit(Class<D> datastoreType,
org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedWriteTransaction<D>,E> txConsumer)
Invokes a consumer with a NEW
WriteTransaction , 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 Exception> |
ManagedNewTransactionRunnerImpl.callWithNewWriteOnlyTransactionAndSubmit(Class<D> datastoreType,
org.opendaylight.infrautils.utils.function.InterruptibleCheckedConsumer<TypedWriteTransaction<D>,E> txConsumer) |
Modifier and Type | Method and Description |
---|---|
static Class<? extends Datastore> |
Datastore.toClass(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType)
Returns the datastore class corresponding to the given logical datastore type.
|
Modifier and Type | Method and Description |
---|---|
static org.opendaylight.controller.md.sal.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.controller.md.sal.common.api.data.LogicalDatastoreType |
Datastore.toType(Class<? extends Datastore> datastoreClass)
Returns the logical datastore type corresponding to the given datastore class.
|
static org.opendaylight.controller.md.sal.binding.api.WriteTransaction |
TransactionAdapter.toWriteTransaction(TypedWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.
Adapts the given datastore-constrained write transaction to a generic write transaction.
|
Modifier and Type | Method and 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 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 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.
|
Copyright © 2019 OpenDaylight. All rights reserved.