Search in sources :

Example 1 with MutableCompositeModification

use of org.opendaylight.controller.cluster.datastore.modification.MutableCompositeModification in project controller by opendaylight.

the class AbstractShardTest method prepareBatchedModifications.

protected static BatchedModifications prepareBatchedModifications(final TransactionIdentifier transactionID, final YangInstanceIdentifier path, final NormalizedNode<?, ?> data, final boolean doCommitOnReady) {
    final MutableCompositeModification modification = new MutableCompositeModification();
    modification.addModification(new WriteModification(path, data));
    return prepareBatchedModifications(transactionID, modification, doCommitOnReady);
}
Also used : WriteModification(org.opendaylight.controller.cluster.datastore.modification.WriteModification) MutableCompositeModification(org.opendaylight.controller.cluster.datastore.modification.MutableCompositeModification)

Aggregations

MutableCompositeModification (org.opendaylight.controller.cluster.datastore.modification.MutableCompositeModification)1 WriteModification (org.opendaylight.controller.cluster.datastore.modification.WriteModification)1