Search in sources :

Example 1 with GetActiveContinuousCopiesForVolume

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

Aggregations

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