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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgentUpdateInfo
downloadContentsXmlFile(File tempDir)
Downloads server version statevoid
downloadObsoleteBuildAgentDistribution(File targetDir)
Download buildAgent.zip file from server.void
downloadUpdateFiles(File targetDir, String baseServerPath, Collection<FileInfo> pluginFiles)
Downloads files from server
-
-
-
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 agentbaseServerPath
- prefix path to be added to everyFileInfo.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
-
downloadContentsXmlFile
@Nullable AgentUpdateInfo downloadContentsXmlFile(@NotNull File tempDir) throws UpgradeFailedException
Downloads server version state- Returns:
- agent updeate info or null if it failed to fetch one
- Throws:
UpgradeFailedException
- Since:
- 7.0
-
-