Class BundledToolVersionsImpl
- java.lang.Object
-
- jetbrains.buildServer.tools.installed.ToolEventsListenerAdapter
-
- jetbrains.buildServer.tools.bundled.BundledToolVersionsImpl
-
- All Implemented Interfaces:
EventListener,BundledToolVersions,ToolEventsListener
public class BundledToolVersionsImpl extends ToolEventsListenerAdapter implements BundledToolVersions
Created by Evgeniy.Koshkin.
-
-
Constructor Summary
Constructors Constructor Description BundledToolVersionsImpl(ServerToolProviders toolProviders, ToolsRegistry localToolsRegistry, ReadonlyToolsRegistry remoteToolsRegistry, PluginManager pluginManager, EventDispatcher<ToolEventsListener> events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<BundledToolVersion>getAllBundledToolVersions()Get a collection of all bundled tool versions including the tool versions that are bundled with TeamCity distribution and the tool versions that are automatically downloaded and installed after the TeamCity server startup.Collection<BundledToolVersion>getAllBundledToolVersions(ToolType toolType)InstalledToolVersionExgetDefaultInstalledBundledToolVersion(ToolType toolType)Collection<InstalledToolVersionEx>getInstalledBundledToolVersions(ToolType toolType)booleanisBundledToolVersion(ToolVersion toolVersion)voidreset()voidtoolInstallationFailed(ToolInstallationError error)Called when the tool installation is interrupted because of some errorvoidtoolInstallationScheduled(ToolVersion tool)Called after performing some basic validation on the server to ensure that the tool can be installed and before the actual installation is started on the servervoidtoolInstalled(InstalledToolVersion tool)Called after the tool installation is completed on the servervoidtoolRemoved(String toolId)Called after the tool is removed on the servervoidtoolUpdated(InstalledToolVersion tool)Called after the tool content is updated on the server.
-
-
-
Constructor Detail
-
BundledToolVersionsImpl
public BundledToolVersionsImpl(@NotNull ServerToolProviders toolProviders, @NotNull ToolsRegistry localToolsRegistry, @NotNull ReadonlyToolsRegistry remoteToolsRegistry, @NotNull PluginManager pluginManager, @NotNull EventDispatcher<ToolEventsListener> events)
-
-
Method Detail
-
getAllBundledToolVersions
@NotNull public Collection<BundledToolVersion> getAllBundledToolVersions()
Description copied from interface:BundledToolVersionsGet a collection of all bundled tool versions including the tool versions that are bundled with TeamCity distribution and the tool versions that are automatically downloaded and installed after the TeamCity server startup.- Specified by:
getAllBundledToolVersionsin interfaceBundledToolVersions- Returns:
- a collection of all bundled tools
-
getAllBundledToolVersions
@NotNull public Collection<BundledToolVersion> getAllBundledToolVersions(@NotNull ToolType toolType)
- Specified by:
getAllBundledToolVersionsin interfaceBundledToolVersions
-
getInstalledBundledToolVersions
@NotNull public Collection<InstalledToolVersionEx> getInstalledBundledToolVersions(@NotNull ToolType toolType) throws ToolException
- Specified by:
getInstalledBundledToolVersionsin interfaceBundledToolVersions- Throws:
ToolException
-
getDefaultInstalledBundledToolVersion
@Nullable public InstalledToolVersionEx getDefaultInstalledBundledToolVersion(@NotNull ToolType toolType) throws ToolException
- Specified by:
getDefaultInstalledBundledToolVersionin interfaceBundledToolVersions- Throws:
ToolException
-
isBundledToolVersion
public boolean isBundledToolVersion(@NotNull ToolVersion toolVersion)- Specified by:
isBundledToolVersionin interfaceBundledToolVersions
-
toolInstallationScheduled
public void toolInstallationScheduled(@NotNull ToolVersion tool)Description copied from interface:ToolEventsListenerCalled after performing some basic validation on the server to ensure that the tool can be installed and before the actual installation is started on the server- Specified by:
toolInstallationScheduledin interfaceToolEventsListener- Overrides:
toolInstallationScheduledin classToolEventsListenerAdapter
-
toolInstalled
public void toolInstalled(@NotNull InstalledToolVersion tool)Description copied from interface:ToolEventsListenerCalled after the tool installation is completed on the server- Specified by:
toolInstalledin interfaceToolEventsListener- Overrides:
toolInstalledin classToolEventsListenerAdapter
-
toolUpdated
public void toolUpdated(@NotNull InstalledToolVersion tool)Description copied from interface:ToolEventsListenerCalled after the tool content is updated on the server. The content is updated when the original tool package is changed- Specified by:
toolUpdatedin interfaceToolEventsListener- Overrides:
toolUpdatedin classToolEventsListenerAdapter
-
toolRemoved
public void toolRemoved(@NotNull String toolId)Description copied from interface:ToolEventsListenerCalled after the tool is removed on the server- Specified by:
toolRemovedin interfaceToolEventsListener- Overrides:
toolRemovedin classToolEventsListenerAdapter
-
toolInstallationFailed
public void toolInstallationFailed(@NotNull ToolInstallationError error)Description copied from interface:ToolEventsListenerCalled when the tool installation is interrupted because of some error- Specified by:
toolInstallationFailedin interfaceToolEventsListener- Overrides:
toolInstallationFailedin classToolEventsListenerAdapter
-
reset
public void reset()
- Specified by:
resetin interfaceBundledToolVersions
-
-