use of com.emc.sa.service.vipr.application.tasks.GetBlockSnapshotSet in project coprhd-controller by CoprHD.
the class BlockStorageUtils method getSingleSnapshotPerSubGroupAndStorageSystem.
public static List<URI> getSingleSnapshotPerSubGroupAndStorageSystem(URI applicationId, String copySet, List<String> subGroups) {
List<URI> snapshotIds = Lists.newArrayList();
Table<URI, String, BlockSnapshotRestRep> results = getReplicationGroupSnapshots(execute(new GetBlockSnapshotSet(applicationId, copySet)).getSnapList());
for (Cell<URI, String, BlockSnapshotRestRep> cell : results.cellSet()) {
if (subGroups.contains(BlockStorageUtils.stripRPTargetFromReplicationGroup(cell.getColumnKey()))) {
snapshotIds.add(cell.getValue().getId());
}
}
return snapshotIds;
}
Aggregations