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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations