Class InstalledToolVersionImpl
- java.lang.Object
-
- jetbrains.buildServer.tools.installed.InstalledToolVersionImpl
-
- All Implemented Interfaces:
InstalledToolVersion,InstalledToolVersionEx,ToolMetadata,ToolVersion
public class InstalledToolVersionImpl extends Object implements InstalledToolVersionEx, ToolMetadata
Created by Evgeniy.Koshkin.
-
-
Constructor Summary
Constructors Constructor Description InstalledToolVersionImpl(ToolVersion toolVersion, File packageLocation, File unpackedContentLocation, File packagedToolLocation, String packagedToolContentHash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetContentHash()StringgetDisplayName()StringgetId()ToolInstallationModegetInstallationMode()Returns the installation mode for this tool version.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()StringtoString()StringtryGetMatadata(ToolMetadataType type)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.tools.InstalledToolVersionEx
isRemote, redirectTo
-
-
-
-
Constructor Detail
-
InstalledToolVersionImpl
public InstalledToolVersionImpl(@NotNull ToolVersion toolVersion, @Nullable File packageLocation, @Nullable File unpackedContentLocation, @Nullable File packagedToolLocation, @Nullable String packagedToolContentHash)
-
-
Method Detail
-
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
-
getContentHash
@Nullable public String getContentHash()
- Specified by:
getContentHashin interfaceInstalledToolVersionEx
-
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
-
tryGetMatadata
@Nullable public String tryGetMatadata(ToolMetadataType type)
- Specified by:
tryGetMatadatain interfaceToolMetadata
-
getInstallationMode
@NotNull public ToolInstallationMode getInstallationMode()
Description copied from interface:ToolVersionReturns the installation mode for this tool version. This mode is only applicable to downloadable bundled tool versions and is used during TeamCity server startup to determine whether the downloadable bundled tool version should be installed.- Specified by:
getInstallationModein interfaceToolVersion
-
-