Search in sources :

Example 1 with StoragePoolUpdate

use of com.emc.storageos.model.pools.StoragePoolUpdate in project coprhd-controller by CoprHD.

the class VirtualArrays method updateStoragePools.

/**
 * Updates the given storage pools with the virtual array assignment changes.
 *
 * @param ids
 *            the storage pool IDs.
 * @param changes
 *            the virtual array changes.
 */
private static void updateStoragePools(List<URI> ids, VirtualArrayAssignmentChanges changes) {
    if (ids.isEmpty()) {
        return;
    }
    List<StoragePoolRestRep> storagePools = StoragePoolUtils.getStoragePools(ids);
    for (StoragePoolRestRep storagePool : storagePools) {
        StoragePoolUpdate update = new StoragePoolUpdate();
        update.setVarrayChanges(changes);
        StoragePoolUtils.update(storagePool.getId(), update);
    }
}
Also used : StoragePoolUpdate(com.emc.storageos.model.pools.StoragePoolUpdate) StoragePoolRestRep(com.emc.storageos.model.pools.StoragePoolRestRep)

Aggregations

StoragePoolRestRep (com.emc.storageos.model.pools.StoragePoolRestRep)1 StoragePoolUpdate (com.emc.storageos.model.pools.StoragePoolUpdate)1