Class MdsalUtilsAsync

java.lang.Object
org.opendaylight.ovsdb.utils.mdsal.utils.MdsalUtilsAsync

public class MdsalUtilsAsync extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    MdsalUtilsAsync(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
    Class constructor setting the data broker.
  • Method Summary

    Modifier and Type
    Method
    Description
    <D extends org.opendaylight.yangtools.yang.binding.DataObject>
    com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo>
    delete(org.opendaylight.mdsal.common.api.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>
    void
    delete(org.opendaylight.mdsal.common.api.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>
    com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo>
    merge(org.opendaylight.mdsal.common.api.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>
    void
    merge(org.opendaylight.mdsal.common.api.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>
    com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo>
    put(org.opendaylight.mdsal.common.api.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>
    void
    put(org.opendaylight.mdsal.common.api.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>
    com.google.common.util.concurrent.FluentFuture<Optional<D>>
    read(org.opendaylight.mdsal.common.api.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MdsalUtilsAsync

      public MdsalUtilsAsync(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      Class constructor setting the data broker.
      Parameters:
      dataBroker - the DataBroker
  • Method Details

    • delete

      public <D extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> delete(org.opendaylight.mdsal.common.api.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path)
      Executes delete as a non blocking transaction and returns the future.
      Parameters:
      store - LogicalDatastoreType which should be modified
      path - InstanceIdentifier to read from
      Returns:
      The FluentFuture object to which you can assign a callback
    • delete

      public <D extends org.opendaylight.yangtools.yang.binding.DataObject> void delete(org.opendaylight.mdsal.common.api.LogicalDatastoreType store, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path, String operationDesc)
      Executes delete as a non blocking transaction and assign a default callback.
      Parameters:
      store - LogicalDatastoreType which should be modified
      path - InstanceIdentifier to read from
      operationDesc - A brief description of the operation to perform
    • put

      public <D extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> put(org.opendaylight.mdsal.common.api.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path, D data)
      Executes put as non blocking transaction and return the future.
      Type Parameters:
      D - The data object type
      Parameters:
      logicalDatastoreType - LogicalDatastoreType which should be modified
      path - InstanceIdentifier for path to read
      Returns:
      The FluentFuture object to which you can assign a callback
    • put

      public <D extends org.opendaylight.yangtools.yang.binding.DataObject> void put(org.opendaylight.mdsal.common.api.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path, D data, String operationDesc)
      Executes put as non blocking transaction and assign default callback.
      Type Parameters:
      D - The data object type
      Parameters:
      logicalDatastoreType - LogicalDatastoreType which should be modified
      path - InstanceIdentifier for path to read
      operationDesc - A brief description of the operation to perform
    • merge

      public <D extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> merge(org.opendaylight.mdsal.common.api.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<D> path, D data, boolean withParent)
      Executes merge as non blocking transaction and return the future.
      Type Parameters:
      D - The data object type
      Parameters:
      logicalDatastoreType - LogicalDatastoreType which should be modified
      path - InstanceIdentifier for path to read
      withParent - Whether or not to create missing parent.
      Returns:
      The FluentFuture object to which you can assign a callback
    • merge

      public <D extends org.opendaylight.yangtools.yang.binding.DataObject> void merge(org.opendaylight.mdsal.common.api.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.
      Type Parameters:
      D - The data object type
      Parameters:
      logicalDatastoreType - LogicalDatastoreType which should be modified
      path - InstanceIdentifier for path to read
      operationDesc - A brief description of the operation to perform
      withParent - Whether or not to create missing parent.
    • read

      public <D extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.util.concurrent.FluentFuture<Optional<D>> read(org.opendaylight.mdsal.common.api.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.
      Type Parameters:
      D - The data object type
      Parameters:
      store - LogicalDatastoreType to read
      path - InstanceIdentifier for path to read
      Returns:
      The FluentFuture object to which you can assign a callback