use of com.emc.storageos.model.pools.StoragePoolBulkRep in project coprhd-controller by CoprHD.
the class StoragePoolService method queryBulkResourceReps.
@Override
public StoragePoolBulkRep queryBulkResourceReps(List<URI> ids) {
Iterator<StoragePool> _dbIterator = _dbClient.queryIterativeObjects(getResourceClass(), ids);
return new StoragePoolBulkRep(BulkList.wrapping(_dbIterator, new Function<StoragePool, StoragePoolRestRep>() {
@Override
public StoragePoolRestRep apply(StoragePool storagePool) {
StoragePoolRestRep restRep = toStoragePoolRep(storagePool, _dbClient, _coordinator);
restRep.setNumResources(getNumResources(storagePool, _dbClient));
return restRep;
}
}));
}
Aggregations