D - The type of data object in MD-SAL datastore.public abstract class DeleteDataTask<D extends org.opendaylight.yangtools.yang.binding.DataObject> extends AbstractDataTask<D,VtnUpdateType>
TxTask used to delete
a data object in he MD-SAL datastore.
This task returns VtnUpdateType.REMOVED if the target data has
been successfully removed, and null if the target data is not
present.
| Constructor and Description |
|---|
DeleteDataTask(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected VtnUpdateType |
execute(TxContext ctx)
Delete a data object in the MD-SAL datastore.
|
protected void |
onDeleted(TxContext ctx)
Invoked when the target data object has been deleted.
|
protected void |
onStarted(TxContext ctx,
D current)
Invoked when the MD-SAL datastore transaction has started.
|
getDatastoreType, getTargetPathneedErrorLogaddBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailure, onSuccesspublic DeleteDataTask(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path)
store - The target type of the MD-SAL datastore.path - The path to the target object.protected final VtnUpdateType execute(TxContext ctx) throws VTNException
execute in class AbstractTxTask<VtnUpdateType>ctx - A runtime context for transaction task.VtnUpdateType instance which indicates the result of
this task.VTNException - An error occurred.protected void onStarted(TxContext ctx, D current) throws VTNException
ctx - A runtime context for transaction task.current - The current value at the target path in the MD-SAL
datastore. Note that null is passed if the
target data is not present.VTNException - An error occurred.protected void onDeleted(TxContext ctx) throws VTNException
ctx - A runtime context for transaction task.VTNException - An error occurred.Copyright © 2018 OpenDaylight. All rights reserved.