public class MdsalUtilsAsync extends Object
Constructor and Description |
---|
MdsalUtilsAsync(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
Class constructor setting the data broker.
|
Modifier and Type | Method and Description |
---|---|
<D extends org.opendaylight.yangtools.yang.binding.DataObject> |
delete(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path)
Executes delete as a non blocking transaction and returns the future.
|
<D extends org.opendaylight.yangtools.yang.binding.DataObject> |
delete(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path,
String operationDesc)
Executes delete as a non blocking transaction and assign a default callback.
|
<D extends org.opendaylight.yangtools.yang.binding.DataObject> |
merge(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path,
D data,
boolean withParent)
Executes merge as non blocking transaction and return the future.
|
<D extends org.opendaylight.yangtools.yang.binding.DataObject> |
merge(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path,
D data,
String operationDesc,
boolean withParent)
Executes merge as non blocking transaction and assign default callback.
|
<D extends org.opendaylight.yangtools.yang.binding.DataObject> |
put(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path,
D data)
Executes put as non blocking transaction and return the future.
|
<D extends org.opendaylight.yangtools.yang.binding.DataObject> |
put(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path,
D data,
String operationDesc)
Executes put as non blocking transaction and assign default callback.
|
<D extends org.opendaylight.yangtools.yang.binding.DataObject> |
read(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path)
Executes read as non blocking transaction and assign a default callback
to close the transaction.
|
public MdsalUtilsAsync(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
dataBroker
- the DataBroker
public <D extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> delete(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path)
store
- LogicalDatastoreType
which should be modifiedpath
- InstanceIdentifier
to read fromCheckedFuture
object to which you can assign a
callbackpublic <D extends org.opendaylight.yangtools.yang.binding.DataObject> void delete(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path, String operationDesc)
store
- LogicalDatastoreType
which should be modifiedpath
- InstanceIdentifier
to read fromoperationDesc
- A brief description of the operation to performpublic <D extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> put(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path, D data)
D
- The data object typelogicalDatastoreType
- LogicalDatastoreType
which should be modifiedpath
- InstanceIdentifier
for path to readCheckedFuture
object to which you can assign a
callbackpublic <D extends org.opendaylight.yangtools.yang.binding.DataObject> void put(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path, D data, String operationDesc)
D
- The data object typelogicalDatastoreType
- LogicalDatastoreType
which should be modifiedpath
- InstanceIdentifier
for path to readoperationDesc
- A brief description of the operation to performpublic <D extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> merge(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path, D data, boolean withParent)
D
- The data object typelogicalDatastoreType
- LogicalDatastoreType
which should be modifiedpath
- InstanceIdentifier
for path to readwithParent
- Whether or not to create missing parent.CheckedFuture
object to which you can assign a
callbackpublic <D extends org.opendaylight.yangtools.yang.binding.DataObject> void merge(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path, D data, String operationDesc, boolean withParent)
D
- The data object typelogicalDatastoreType
- LogicalDatastoreType
which should be modifiedpath
- InstanceIdentifier
for path to readoperationDesc
- A brief description of the operation to performwithParent
- Whether or not to create missing parent.public <D extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.util.concurrent.CheckedFuture<com.google.common.base.Optional<D>,org.opendaylight.controller.md.sal.common.api.data.ReadFailedException> read(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path)
D
- The data object typestore
- LogicalDatastoreType
to readpath
- InstanceIdentifier
for path to readCheckedFuture
object to which you can assign a
callbackCopyright © 2018 OpenDaylight. All rights reserved.