Enum ToolInstallationSource
- java.lang.Object
-
- java.lang.Enum<ToolInstallationSource>
-
- jetbrains.buildServer.tools.installed.ToolInstallationSource
-
- All Implemented Interfaces:
Serializable
,Comparable<ToolInstallationSource>
public enum ToolInstallationSource extends Enum<ToolInstallationSource>
Identifies the installation source of the tool.The installation source is needed in scenarios such as determining whether the bundled tool version was installed by TeamCity or by the user.
Additionally, this information can be helpful for audit purposes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUNDLED_TOOLS_AUTO_INSTALLER
DOWNLOAD_API_REQUEST
RETRY_DOWNLOAD_API_REQUEST
SYNCH_WITH_EXTERNAL_CHANGES_ON_STARTUP
TOOL_PACKAGES_WATCHER
UNKNOWN_SOURCE
UPLOAD_API_REQUEST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isApiRequest()
static ToolInstallationSource
valueOf(String name)
Returns the enum constant of this type with the specified name.static ToolInstallationSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_SOURCE
public static final ToolInstallationSource UNKNOWN_SOURCE
-
UPLOAD_API_REQUEST
public static final ToolInstallationSource UPLOAD_API_REQUEST
-
DOWNLOAD_API_REQUEST
public static final ToolInstallationSource DOWNLOAD_API_REQUEST
-
RETRY_DOWNLOAD_API_REQUEST
public static final ToolInstallationSource RETRY_DOWNLOAD_API_REQUEST
-
TOOL_PACKAGES_WATCHER
public static final ToolInstallationSource TOOL_PACKAGES_WATCHER
-
BUNDLED_TOOLS_AUTO_INSTALLER
public static final ToolInstallationSource BUNDLED_TOOLS_AUTO_INSTALLER
-
SYNCH_WITH_EXTERNAL_CHANGES_ON_STARTUP
public static final ToolInstallationSource SYNCH_WITH_EXTERNAL_CHANGES_ON_STARTUP
-
-
Method Detail
-
values
public static ToolInstallationSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ToolInstallationSource c : ToolInstallationSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ToolInstallationSource valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isApiRequest
public boolean isApiRequest()
-
-