public Boolean updateStoragePortOperationalStatus(){
  _logger.info("Updating operationalStatus for the StoragePort initiated");
  boolean updateStatus=false;
  StoragePort storagePort=getStoargePortFromDBBasedOnPortName();
  OperationalStatus operationalStatus=StoragePortProcessor.getPortOperationalStatus(getOperationalStatusCodesArray());
  newOperationalStatus=operationalStatus.name();
  storagePort.setOperationalStatus(newOperationalStatus);
  _dbClient.persistObject(storagePort);
  updateStatus=true;
  _logger.info("Updating operationalStatus for the StoragePort completed status:{}",updateStatus);
  return updateStatus;
}

public Boolean updateStoragePortOperationalStatus ( ) { _logger . info ( "Updating operationalStatus for the StoragePort initiated" ) ; boolean updateStatus = false ; StoragePort storagePort = getStoargePortFromDBBasedOnPortName ( ) ; OperationalStatus operationalStatus = StoragePortProcessor . getPortOperationalStatus ( getOperationalStatusCodesArray ( ) ) ; newOperationalStatus = operationalStatus . name ( ) ; storagePort . setOperationalStatus ( newOperationalStatus ) ; _dbClient . persistObject ( storagePort ) ; updateStatus = true ; _logger . info ( "Updating operationalStatus for the StoragePort completed status:{}" , updateStatus ) ; return updateStatus ; }
updates port ' s operational status based on the indication received from smi - s provider .
