Class IncrementalPluginsUpgrade
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.upgrade.modes.IncrementalPluginsUpgrade
-
public class IncrementalPluginsUpgrade extends Object
Created 04.03.13 16:12- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentConfigurationmyConfigprotected AgentVersionControllermyControllerprotected UpgradeFilesDownloadermyDownloaderprotected PluginUnpackLocationsmyLocationsprotected UpdatePreparermyPreparerprotected PluginsRemovermyRemover
-
Constructor Summary
Constructors Constructor Description IncrementalPluginsUpgrade(PluginUnpackLocations locations, PluginsRemover remover, UpgradeFilesDownloader downloader, UpdatePreparer preparer, AgentConfiguration config, AgentVersionController controller, ToolUnregistrar toolUnregistrar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownloadRequiredPlugins(AgentUpdateInfoDifference difference)calculates required plugins by difference and full info from server and downloads these plugins to update foldervoidmoveDownloadedPlugins(AgentUpdateInfoDifference difference, AgentUpdateInfo newInfo)
-
-
-
Field Detail
-
myLocations
@NotNull protected final PluginUnpackLocations myLocations
-
myRemover
@NotNull protected final PluginsRemover myRemover
-
myConfig
@NotNull protected final AgentConfiguration myConfig
-
myDownloader
@NotNull protected final UpgradeFilesDownloader myDownloader
-
myPreparer
@NotNull protected final UpdatePreparer myPreparer
-
myController
@NotNull protected final AgentVersionController myController
-
-
Constructor Detail
-
IncrementalPluginsUpgrade
public IncrementalPluginsUpgrade(@NotNull PluginUnpackLocations locations, @NotNull PluginsRemover remover, @NotNull UpgradeFilesDownloader downloader, @NotNull UpdatePreparer preparer, @NotNull AgentConfiguration config, @NotNull AgentVersionController controller, @NotNull ToolUnregistrar toolUnregistrar)
-
-
Method Detail
-
downloadRequiredPlugins
public void downloadRequiredPlugins(@NotNull AgentUpdateInfoDifference difference) throws UpgradeFailedExceptioncalculates required plugins by difference and full info from server and downloads these plugins to update folder- Throws:
UpgradeFailedException
-
moveDownloadedPlugins
public void moveDownloadedPlugins(@NotNull AgentUpdateInfoDifference difference, @NotNull AgentUpdateInfo newInfo) throws UpgradeFailedException- Throws:
UpgradeFailedException
-
-