@Override public DriverTask discoverStoragePorts(StorageSystem storageSystem,List<StoragePort> storagePorts){
  _log.info("3PARDriver: discoverStoragePorts information for storage system {}, nativeId {} - start",storageSystem.getIpAddress(),storageSystem.getNativeId());
  DriverTask task=createDriverTask(HP3PARConstants.TASK_TYPE_DISCOVER_STORAGE_PORTS);
  try {
    hp3parUtil.discoverStoragePortsById(storageSystem.getNativeId(),storagePorts,this.driverRegistry);
    storageSystem.setAccessStatus(AccessStatus.READ_WRITE);
    task.setStatus(DriverTask.TaskStatus.READY);
    _log.info("3PARDriver: discoverStoragePorts information for storage system {}, nativeId {} - end",storageSystem.getIpAddress(),storageSystem.getNativeId());
  }
 catch (  Exception e) {
    String msg=String.format("3PARDriver: Unable to discover the storage port information for storage system %s native id %s; Error: %s.\n",storageSystem.getSystemName(),storageSystem.getNativeId(),e);
    _log.error(msg);
    _log.error(CompleteError.getStackTrace(e));
    task.setMessage(msg);
    task.setStatus(DriverTask.TaskStatus.FAILED);
    e.printStackTrace();
  }
  return task;
}

@ Override public DriverTask discoverStoragePorts ( StorageSystem storageSystem , List < StoragePort > storagePorts ) { _log . info ( "3PARDriver: discoverStoragePorts information for storage system {}, nativeId {} - start" , storageSystem . getIpAddress ( ) , storageSystem . getNativeId ( ) ) ; DriverTask task = createDriverTask ( HP3PARConstants . TASK_TYPE_DISCOVER_STORAGE_PORTS ) ; try { hp3parUtil . discoverStoragePortsById ( storageSystem . getNativeId ( ) , storagePorts , this . driverRegistry ) ; storageSystem . setAccessStatus ( AccessStatus . READ_WRITE ) ; task . setStatus ( DriverTask . TaskStatus . READY ) ; _log . info ( "3PARDriver: discoverStoragePorts information for storage system {}, nativeId {} - end" , storageSystem . getIpAddress ( ) , storageSystem . getNativeId ( ) ) ; } catch ( Exception e ) { String msg = String . format ( "3PARDriver: Unable to discover the storage port information for storage system %s native id %s; Error: %s.\n" , storageSystem . getSystemName ( ) , storageSystem . getNativeId ( ) , e ) ; _log . error ( msg ) ; _log . error ( CompleteError . getStackTrace ( e ) ) ; task . setMessage ( msg ) ; task . setStatus ( DriverTask . TaskStatus . FAILED ) ; e . printStackTrace ( ) ; } return task ; }
get storage port information
