Package jetbrains.buildServer.plugins
Class AgentUpdateInfo
- java.lang.Object
-
- jetbrains.buildServer.plugins.AgentUpdateInfo
-
public class AgentUpdateInfo extends Object
- Author:
- Eugene Petrenko (eugene.petrenko@gmail.com) Date: 03.02.11 12:22
-
-
Constructor Summary
Constructors Constructor Description AgentUpdateInfo(String agentVersion, Collection<AgentPluginInfoEx> agentPlugins, Collection<FileInfo> agentMains)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AgentUpdateInfocreateEmptyInfo()static AgentUpdateInfodeserialize(InputStream is)booleanequals(Object o)StringgetAgentVersion()Collection<FileInfo>getMainFiles()Collection<FileInfo>getPluginFiles()Collection<AgentPluginInfoEx>getPlugins()StringgetRootHash()inthashCode()voidserialize(OutputStream stream)voidserializeToOldFormat(OutputStream stream)StringtoString()AgentUpdateInfoupdateAgent(String newVersion, Collection<FileInfo> newFiles)Create new instance of this object with agent files updatedAgentUpdateInfoupdatePlugins(Collection<AgentPluginInfoEx> removed, Collection<AgentPluginInfoEx> updated, Collection<AgentPluginInfoEx> installed)Creates new instance of the class with updated agent plugins info
-
-
-
Constructor Detail
-
AgentUpdateInfo
public AgentUpdateInfo(@NotNull String agentVersion, @NotNull Collection<AgentPluginInfoEx> agentPlugins, @NotNull Collection<FileInfo> agentMains)
-
-
Method Detail
-
createEmptyInfo
public static AgentUpdateInfo createEmptyInfo()
-
getAgentVersion
@NotNull public String getAgentVersion()
-
getRootHash
@NotNull public String getRootHash()
- Returns:
- cumulative hash. This is a hash of all plugins
-
getPlugins
@NotNull public Collection<AgentPluginInfoEx> getPlugins()
-
getPluginFiles
@NotNull public Collection<FileInfo> getPluginFiles()
-
getMainFiles
@NotNull public Collection<FileInfo> getMainFiles()
-
serialize
public void serialize(@NotNull OutputStream stream)
-
serializeToOldFormat
public void serializeToOldFormat(@NotNull OutputStream stream)
-
deserialize
@Nullable public static AgentUpdateInfo deserialize(@NotNull InputStream is)
-
updatePlugins
@NotNull public AgentUpdateInfo updatePlugins(@NotNull Collection<AgentPluginInfoEx> removed, @NotNull Collection<AgentPluginInfoEx> updated, @NotNull Collection<AgentPluginInfoEx> installed)
Creates new instance of the class with updated agent plugins info- Parameters:
removed- plugins to removeupdated- plugins to updateinstalled- plugins to install- Returns:
- new instance of this object
- Since:
- 7.0
-
updateAgent
@NotNull public AgentUpdateInfo updateAgent(@NotNull String newVersion, @NotNull Collection<FileInfo> newFiles)
Create new instance of this object with agent files updated- Parameters:
newVersion- new agent versionnewFiles- new agent files- Returns:
- new instance with agent info updated
- Since:
- 7.0
-
-