use of com.emc.sa.service.vipr.application.tasks.GetFullCopyList in project coprhd-controller by CoprHD.
the class BlockStorageUtils method getAllFullCopyVolumes.
public static List<URI> getAllFullCopyVolumes(URI applicationId, String copySet, List<String> subGroups) {
List<URI> fullCopyIds = Lists.newArrayList();
List<NamedRelatedResourceRep> fullCopies = execute(new GetFullCopyList(applicationId, copySet)).getVolumes();
for (NamedRelatedResourceRep fullCopy : fullCopies) {
fullCopyIds.add(fullCopy.getId());
}
return fullCopyIds;
}
use of com.emc.sa.service.vipr.application.tasks.GetFullCopyList in project coprhd-controller by CoprHD.
the class BlockStorageUtils method getSingleFullCopyPerSubGroupAndStorageSystem.
public static List<URI> getSingleFullCopyPerSubGroupAndStorageSystem(URI applicationId, String copySet, List<String> subGroups) {
List<URI> fullCopyIds = Lists.newArrayList();
Table<URI, String, VolumeRestRep> results = getReplicationGroupFullCopies(execute(new GetFullCopyList(applicationId, copySet)).getVolumes());
for (Cell<URI, String, VolumeRestRep> cell : results.cellSet()) {
if (subGroups.contains(cell.getColumnKey())) {
fullCopyIds.add(cell.getValue().getId());
}
}
return fullCopyIds;
}
Aggregations