Search in sources :

Example 1 with AddJournalCapacity

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;
}
Also used : AddJournalCapacity(com.emc.sa.service.vipr.block.tasks.AddJournalCapacity) VolumeRestRep(com.emc.storageos.model.block.VolumeRestRep) URI(java.net.URI)

Aggregations

AddJournalCapacity (com.emc.sa.service.vipr.block.tasks.AddJournalCapacity)1 VolumeRestRep (com.emc.storageos.model.block.VolumeRestRep)1 URI (java.net.URI)1