use of com.emc.sa.service.vipr.block.tasks.GetActiveContinuousCopiesForVolume in project coprhd-controller by CoprHD.
the class AddVolumesToConsistencyGroupService method getMirrors.
/**
* Get mirrors for a given volume id
*
* @param volumeId the volume id to use
* @return list of mirror ids
*/
public List<URI> getMirrors(URI volumeId) {
List<URI> blockMirrors = Lists.newArrayList();
List<BlockMirrorRestRep> blockMirrorRestReps = execute(new GetActiveContinuousCopiesForVolume(volumeId));
for (BlockMirrorRestRep blockMirrorId : blockMirrorRestReps) {
blockMirrors.add(blockMirrorId.getId());
}
return blockMirrors;
}
Aggregations