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 boolean
equals(Object o)
String
getDisplayName()
String
getId()
String
getOriginalId()
File
getOriginalPackage()
File
getPackagedTool()
Long
getRequiredFreeDiskSpaceHint()
Returns an approximate amount of free disk space in bytes required to install this tool version.ToolType
getType()
File
getUnpackedContentLocation()
String
getVersion()
int
hashCode()
boolean
isBundled()
static SimpleInstalledToolVersion
newBundledToAgentTool(ToolType toolType, String versionString, String toolId)
static SimpleInstalledToolVersion
newBundledToAgentTool(ToolType toolType, String versionString, String toolId, String displayName, File packedTool)
static SimpleInstalledToolVersion
newBundledToAgentTool(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:
getOriginalPackage
in interfaceInstalledToolVersion
-
getUnpackedContentLocation
@Nullable public File getUnpackedContentLocation()
- Specified by:
getUnpackedContentLocation
in interfaceInstalledToolVersion
-
getPackagedTool
@Nullable public File getPackagedTool()
- Specified by:
getPackagedTool
in interfaceInstalledToolVersion
-
getType
@NotNull public ToolType getType()
- Specified by:
getType
in interfaceToolVersion
-
getVersion
@NotNull public String getVersion()
- Specified by:
getVersion
in interfaceToolVersion
-
getId
@NotNull public String getId()
- Specified by:
getId
in interfaceToolVersion
-
getOriginalId
@NotNull public String getOriginalId()
- Specified by:
getOriginalId
in interfaceToolVersion
-
getDisplayName
@NotNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceToolVersion
-
isBundled
public boolean isBundled()
- Specified by:
isBundled
in interfaceToolVersion
-
getRequiredFreeDiskSpaceHint
@Nullable public Long getRequiredFreeDiskSpaceHint()
Description copied from interface:ToolVersion
Returns 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:
getRequiredFreeDiskSpaceHint
in interfaceToolVersion
-
-