Search in sources :

Example 6 with ActionableResourceImpl

use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project genius by opendaylight.

the class BatchingUtils method write.

public <T extends DataObject> void write(InstanceIdentifier<T> path, T data, EntityType entityType) {
    ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
    actResource.setAction(ActionableResource.CREATE);
    actResource.setInstanceIdentifier(path);
    actResource.setInstance(data);
    getQueue(entityType).add(actResource);
}
Also used : ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Example 7 with ActionableResourceImpl

use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project genius by opendaylight.

the class FlowBatchingUtils method write.

<T extends DataObject> void write(InstanceIdentifier<T> path, T data) {
    ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
    actResource.setAction(ActionableResource.CREATE);
    actResource.setInstanceIdentifier(path);
    actResource.setInstance(data);
    inventoryConfigShardBufferQ.add(actResource);
}
Also used : ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Example 8 with ActionableResourceImpl

use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project netvirt by opendaylight.

the class BgpUtil method write.

public <T extends DataObject> void write(final InstanceIdentifier<T> path, final T data) {
    ActionableResource actResource = new ActionableResourceImpl(path.toString());
    actResource.setAction(ActionableResource.CREATE);
    actResource.setInstanceIdentifier(path);
    actResource.setInstance(data);
    bgpResourcesBufferQ.add(actResource);
}
Also used : ActionableResource(org.opendaylight.genius.utils.batching.ActionableResource) ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Example 9 with ActionableResourceImpl

use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project netvirt by opendaylight.

the class BgpUtil method update.

public <T extends DataObject> void update(final InstanceIdentifier<T> path, final T data) {
    ActionableResource actResource = new ActionableResourceImpl(path.toString());
    actResource.setAction(ActionableResource.UPDATE);
    actResource.setInstanceIdentifier(path);
    actResource.setInstance(data);
    bgpResourcesBufferQ.add(actResource);
}
Also used : ActionableResource(org.opendaylight.genius.utils.batching.ActionableResource) ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Example 10 with ActionableResourceImpl

use of org.opendaylight.genius.utils.batching.ActionableResourceImpl in project genius by opendaylight.

the class FlowBatchingUtils method update.

<T extends DataObject> void update(InstanceIdentifier<T> path, T data) {
    ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
    actResource.setAction(ActionableResource.UPDATE);
    actResource.setInstanceIdentifier(path);
    actResource.setInstance(data);
    inventoryConfigShardBufferQ.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