Search in sources :

Example 11 with ActionableResourceImpl

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);
}
Also used : ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Example 12 with ActionableResourceImpl

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);
}
Also used : ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Example 13 with ActionableResourceImpl

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);
}
Also used : ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Example 14 with ActionableResourceImpl

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);
}
Also used : ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Example 15 with ActionableResourceImpl

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);
}
Also used : ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Aggregations

ActionableResourceImpl (org.opendaylight.genius.utils.batching.ActionableResourceImpl)15 ActionableResource (org.opendaylight.genius.utils.batching.ActionableResource)6