Package jetbrains.buildServer.tools.impl
Class ServerToolManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.tools.impl.ServerToolManagerImpl
-
- All Implemented Interfaces:
ToolMultiNodesEventListener
,ServerToolManager
public class ServerToolManagerImpl extends Object implements ServerToolManager, ToolMultiNodesEventListener
-
-
Constructor Summary
Constructors Constructor Description ServerToolManagerImpl(ServerToolProviders toolProviders, ToolsRegistry toolsRegistry, ReadonlyToolsRegistry remoteToolsRegistry, ToolPaths toolPaths, BundledToolVersions bundledToolVersions, ToolPackagesWatcher packagesWatcher, ToolFreeDiskSpaceValidator toolFreeDiskSpaceValidator, ToolMultiNodesEvents toolMultiNodesEvents)
-
Method Summary
-
-
-
Constructor Detail
-
ServerToolManagerImpl
public ServerToolManagerImpl(@NotNull ServerToolProviders toolProviders, @NotNull ToolsRegistry toolsRegistry, @NotNull ReadonlyToolsRegistry remoteToolsRegistry, @NotNull ToolPaths toolPaths, @NotNull BundledToolVersions bundledToolVersions, @NotNull ToolPackagesWatcher packagesWatcher, @NotNull ToolFreeDiskSpaceValidator toolFreeDiskSpaceValidator, @NotNull ToolMultiNodesEvents toolMultiNodesEvents)
-
-
Method Detail
-
setDefaultToolVersions
public void setDefaultToolVersions(@NotNull DefaultToolVersions defaultVersions)
-
getInstalledTools
@NotNull public Collection<InstalledToolVersionEx> getInstalledTools()
- Specified by:
getInstalledTools
in interfaceServerToolManager
-
getNotDismissedInstallationErrors
@NotNull public Collection<ToolInstallationError> getNotDismissedInstallationErrors()
- Specified by:
getNotDismissedInstallationErrors
in interfaceServerToolManager
-
getInstalledTools
@NotNull public Collection<InstalledToolVersionEx> getInstalledTools(@NotNull ToolType toolType)
- Specified by:
getInstalledTools
in interfaceServerToolManager
-
findInstalledTool
@Nullable public InstalledToolVersionEx findInstalledTool(@NotNull String toolVersionId)
- Specified by:
findInstalledTool
in interfaceServerToolManager
-
getAllToolTypes
@NotNull public Collection<ToolType> getAllToolTypes()
- Specified by:
getAllToolTypes
in interfaceServerToolManager
-
findToolType
@Nullable public ToolType findToolType(@Nullable String toolTypeName)
- Specified by:
findToolType
in interfaceServerToolManager
-
getAvailableToolTypes
@NotNull public Collection<ToolType> getAvailableToolTypes()
- Specified by:
getAvailableToolTypes
in interfaceServerToolManager
-
getAvailableTools
@NotNull public Collection<ToolVersion> getAvailableTools(@NotNull ToolType toolType) throws ToolException
- Specified by:
getAvailableTools
in interfaceServerToolManager
- Throws:
ToolException
-
installTool
@NotNull public InstalledToolVersionEx installTool(@NotNull ToolVersion tool, @NotNull ToolInstallationSource toolInstallationSource) throws ToolException
- Specified by:
installTool
in interfaceServerToolManager
- Throws:
ToolException
-
installTool
@NotNull public InstalledToolVersionEx installTool(@NotNull ToolType toolType, @NotNull File toolContent, @NotNull ToolInstallationSource toolInstallationSource) throws ToolException
- Specified by:
installTool
in interfaceServerToolManager
- Throws:
ToolException
-
removeTool
public boolean removeTool(@NotNull String toolId) throws ToolException
- Specified by:
removeTool
in interfaceServerToolManager
- Throws:
ToolException
-
dismissToolError
public boolean dismissToolError(@NotNull String toolId)
- Specified by:
dismissToolError
in interfaceServerToolManager
-
resolveToolVersionReference
@Nullable public ToolVersion resolveToolVersionReference(@NotNull ToolType toolType, @NotNull String toolVersionReference, @NotNull SProject scope)
- Specified by:
resolveToolVersionReference
in interfaceServerToolManager
-
getUnpackedToolVersionPath
@Nullable public File getUnpackedToolVersionPath(@NotNull ToolType toolType, @NotNull String toolVersionReference, @NotNull SProject scope)
- Specified by:
getUnpackedToolVersionPath
in interfaceServerToolManager
-
consumeToolMultiNodesEvent
public void consumeToolMultiNodesEvent(@NotNull ToolMultiNodesEventType eventType, @NotNull MultiNodesEvents.Event event)
- Specified by:
consumeToolMultiNodesEvent
in interfaceToolMultiNodesEventListener
-
-