use of com.emc.sa.service.vipr.block.tasks.AddJournalCapacity in project coprhd-controller by CoprHD.
the class BlockStorageUtils method addJournalCapacity.
public static List<URI> addJournalCapacity(URI projectId, URI virtualArrayId, URI virtualPoolId, double sizeInGb, Integer count, URI consistencyGroupId, String copyName) {
String volumeSize = gbToVolumeSize(sizeInGb);
Tasks<VolumeRestRep> tasks = execute(new AddJournalCapacity(virtualPoolId, virtualArrayId, projectId, volumeSize, count, consistencyGroupId, copyName));
List<URI> volumeIds = Lists.newArrayList();
for (Task<VolumeRestRep> task : tasks.getTasks()) {
URI volumeId = task.getResourceId();
addAffectedResource(volumeId);
volumeIds.add(volumeId);
}
return volumeIds;
}
Aggregations