Package jetbrains.buildServer.tools
Class SimpleInstalledToolVersion
- java.lang.Object
-
- jetbrains.buildServer.tools.SimpleInstalledToolVersion
-
- All Implemented Interfaces:
InstalledToolVersion,ToolVersion
public class SimpleInstalledToolVersion extends Object implements InstalledToolVersion
Created by Evgeniy.Koshkin.
-
-
Constructor Summary
Constructors Constructor Description SimpleInstalledToolVersion(ToolVersion toolVersion, File originalPackage, File unpackedContent, File packedTool)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDisplayName()StringgetId()StringgetOriginalId()FilegetOriginalPackage()FilegetPackagedTool()LonggetRequiredFreeDiskSpaceHint()Returns an approximate amount of free disk space in bytes required to install this tool version.ToolTypegetType()FilegetUnpackedContentLocation()StringgetVersion()inthashCode()booleanisBundled()static SimpleInstalledToolVersionnewBundledToAgentTool(ToolType toolType, String versionString, String toolId)static SimpleInstalledToolVersionnewBundledToAgentTool(ToolType toolType, String versionString, String toolId, String displayName, File packedTool)static SimpleInstalledToolVersionnewBundledToAgentTool(ToolVersion toolVersion, File packedTool)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.tools.ToolVersion
getInstallationMode
-
-
-
-
Constructor Detail
-
SimpleInstalledToolVersion
public SimpleInstalledToolVersion(@NotNull ToolVersion toolVersion, @Nullable File originalPackage, @Nullable File unpackedContent, @Nullable File packedTool)
-
-
Method Detail
-
newBundledToAgentTool
@NotNull public static SimpleInstalledToolVersion newBundledToAgentTool(@NotNull ToolType toolType, @NotNull String versionString, @NotNull String toolId)
-
newBundledToAgentTool
@NotNull public static SimpleInstalledToolVersion newBundledToAgentTool(@NotNull ToolVersion toolVersion, @Nullable File packedTool)
-
newBundledToAgentTool
@NotNull public static SimpleInstalledToolVersion newBundledToAgentTool(@NotNull ToolType toolType, @NotNull String versionString, @NotNull String toolId, @NotNull String displayName, @Nullable File packedTool)
-
getOriginalPackage
@Nullable public File getOriginalPackage()
- Specified by:
getOriginalPackagein interfaceInstalledToolVersion
-
getUnpackedContentLocation
@Nullable public File getUnpackedContentLocation()
- Specified by:
getUnpackedContentLocationin interfaceInstalledToolVersion
-
getPackagedTool
@Nullable public File getPackagedTool()
- Specified by:
getPackagedToolin interfaceInstalledToolVersion
-
getType
@NotNull public ToolType getType()
- Specified by:
getTypein interfaceToolVersion
-
getVersion
@NotNull public String getVersion()
- Specified by:
getVersionin interfaceToolVersion
-
getId
@NotNull public String getId()
- Specified by:
getIdin interfaceToolVersion
-
getOriginalId
@NotNull public String getOriginalId()
- Specified by:
getOriginalIdin interfaceToolVersion
-
getDisplayName
@NotNull public String getDisplayName()
- Specified by:
getDisplayNamein interfaceToolVersion
-
isBundled
public boolean isBundled()
- Specified by:
isBundledin interfaceToolVersion
-
getRequiredFreeDiskSpaceHint
@Nullable public Long getRequiredFreeDiskSpaceHint()
Description copied from interface:ToolVersionReturns an approximate amount of free disk space in bytes required to install this tool version. It is recommended to round the value up, e.g. if it's required to have ~4.5 GB, it's better to return a bigger value, e.g. 5 GB.The implementation of this method is optional but recommended for downloadable bundled tool versions.
- Specified by:
getRequiredFreeDiskSpaceHintin interfaceToolVersion
-
-