public DriverTask discoverStoragePools(StorageSystem storageSystem,List<StoragePool> storagePools){
  LOG.info("Discovering storage pools for [{}] {} {}",storageSystem.getSystemName(),storageSystem.getIpAddress(),storageSystem.getNativeId());
  DellSCDriverTask task=new DellSCDriverTask("discoverStoragePools");
  try {
    StorageCenterAPI api=connectionManager.getConnection(storageSystem.getNativeId());
    ScStorageType[] storageTypes=api.getStorageTypes(storageSystem.getNativeId());
    for (    ScStorageType storageType : storageTypes) {
      storagePools.add(util.getStoragePoolFromStorageType(api,storageType,null));
    }
    task.setStatus(DriverTask.TaskStatus.READY);
  }
 catch (  Exception e) {
    String failureMessage=String.format("Error getting pool information: %s",e);
    task.setFailed(failureMessage);
    LOG.warn(failureMessage);
  }
  return task;
}

public DriverTask discoverStoragePools ( StorageSystem storageSystem , List < StoragePool > storagePools ) { LOG . info ( "Discovering storage pools for [{}] {} {}" , storageSystem . getSystemName ( ) , storageSystem . getIpAddress ( ) , storageSystem . getNativeId ( ) ) ; DellSCDriverTask task = new DellSCDriverTask ( "discoverStoragePools" ) ; try { StorageCenterAPI api = connectionManager . getConnection ( storageSystem . getNativeId ( ) ) ; ScStorageType [ ] storageTypes = api . getStorageTypes ( storageSystem . getNativeId ( ) ) ; for ( ScStorageType storageType : storageTypes ) { storagePools . add ( util . getStoragePoolFromStorageType ( api , storageType , null ) ) ; } task . setStatus ( DriverTask . TaskStatus . READY ) ; } catch ( Exception e ) { String failureMessage = String . format ( "Error getting pool information: %s" , e ) ; task . setFailed ( failureMessage ) ; LOG . warn ( failureMessage ) ; } return task ; }
discover storage pools and their capabilities .
