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 boolean
equals(Object o)
String
getContentHash()
String
getDisplayName()
String
getId()
ToolInstallationMode
getInstallationMode()
Returns the installation mode for this tool version.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()
String
toString()
String
tryGetMatadata(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:
getOriginalPackage
in interfaceInstalledToolVersion
-
getUnpackedContentLocation
@Nullable public File getUnpackedContentLocation()
- Specified by:
getUnpackedContentLocation
in interfaceInstalledToolVersion
-
getPackagedTool
@Nullable public File getPackagedTool()
- Specified by:
getPackagedTool
in interfaceInstalledToolVersion
-
getContentHash
@Nullable public String getContentHash()
- Specified by:
getContentHash
in interfaceInstalledToolVersionEx
-
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
-
tryGetMatadata
@Nullable public String tryGetMatadata(ToolMetadataType type)
- Specified by:
tryGetMatadata
in interfaceToolMetadata
-
getInstallationMode
@NotNull public ToolInstallationMode getInstallationMode()
Description copied from interface:ToolVersion
Returns 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:
getInstallationMode
in interfaceToolVersion
-
-