Interface UpgradeFilesDownloader

  • All Known Implementing Classes:
    UpgradeFilesDownloaderImpl

    public interface UpgradeFilesDownloader
    Since:
    7.0
    Author:
    Eugene Petrenko (eugene.petrenko@gmail.com) Date: 02.09.11 19:42
    • Method Detail

      • downloadUpdateFiles

        void downloadUpdateFiles​(@NotNull
                                 File targetDir,
                                 @NotNull
                                 String baseServerPath,
                                 @NotNull
                                 Collection<FileInfo> pluginFiles)
                          throws UpgradeFailedException
        Downloads files from server
        Parameters:
        targetDir - directory to put files on agent
        baseServerPath - prefix path to be added to every FileInfo.getName()
        pluginFiles - list of plugins to download
        Throws:
        UpgradeFailedException - on download or other IO error
        Since:
        7.0
      • downloadObsoleteBuildAgentDistribution

        void downloadObsoleteBuildAgentDistribution​(@NotNull
                                                    File targetDir)
                                             throws UpgradeFailedException
        Download buildAgent.zip file from server. This method is done for old servers compatibility
        Parameters:
        targetDir - directory to download the file
        Throws:
        UpgradeFailedException - on download or other IO error
        Since:
        7.0