use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project genius by opendaylight.
the class FlowBatchingUtils method delete.
<T extends DataObject> void delete(InstanceIdentifier<T> path) {
ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.DELETE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(null);
inventoryConfigShardBufferQ.add(actResource);
}
use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project genius by opendaylight.
the class ITMBatchingUtils method update.
public static <T extends DataObject> void update(InstanceIdentifier<T> path, T data, EntityType entityType) {
ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.UPDATE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(data);
LOG.debug("Adding to the Queue to batch the update DS Operation - Id {} data {}", path, data);
getQueue(entityType).add(actResource);
}
use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project genius by opendaylight.
the class ITMBatchingUtils method delete.
public static <T extends DataObject> void delete(InstanceIdentifier<T> path, EntityType entityType) {
ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.DELETE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(null);
LOG.debug("Adding to the Queue to batch the delete DS Operation - Id {}", path);
getQueue(entityType).add(actResource);
}
use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project genius by opendaylight.
the class BatchingUtils method delete.
public <T extends DataObject> void delete(InstanceIdentifier<T> path, EntityType entityType) {
ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.DELETE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(null);
getQueue(entityType).add(actResource);
}
use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project genius by opendaylight.
the class BatchingUtils method update.
<T extends DataObject> void update(InstanceIdentifier<T> path, T data, EntityType entityType) {
ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.UPDATE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(data);
getQueue(entityType).add(actResource);
}
Aggregations