Search in sources :

Example 1 with GetActiveFullCopiesForVolume

use of com.emc.sa.service.vipr.block.tasks.GetActiveFullCopiesForVolume in project coprhd-controller by CoprHD.

the class AddVolumesToConsistencyGroupService method getFullCopies.

/**
 * Get full copies for a given volume id
 *
 * @param volumeId the volume id to use
 * @return list of full copy ids
 */
public List<URI> getFullCopies(URI volumeId) {
    List<URI> fullCopies = Lists.newArrayList();
    List<VolumeRestRep> fullCopyRestReps = execute(new GetActiveFullCopiesForVolume(volumeId));
    for (VolumeRestRep fullCopyId : fullCopyRestReps) {
        fullCopies.add(fullCopyId.getId());
    }
    return fullCopies;
}
Also used : GetActiveFullCopiesForVolume(com.emc.sa.service.vipr.block.tasks.GetActiveFullCopiesForVolume) VolumeRestRep(com.emc.storageos.model.block.VolumeRestRep) URI(java.net.URI)

Aggregations

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