Search in sources :

Example 1 with GetBlockSnapshotSet

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

Aggregations

GetBlockSnapshotSet (com.emc.sa.service.vipr.application.tasks.GetBlockSnapshotSet)1 BlockSnapshotRestRep (com.emc.storageos.model.block.BlockSnapshotRestRep)1 URI (java.net.URI)1