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