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)
InstalledToolVersionEx
getDefaultInstalledBundledToolVersion(ToolType toolType)
Collection<InstalledToolVersionEx>
getInstalledBundledToolVersions(ToolType toolType)
boolean
isBundledToolVersion(ToolVersion toolVersion)
void
reset()
void
toolInstallationFailed(ToolInstallationError error)
Called when the tool installation is interrupted because of some errorvoid
toolInstallationScheduled(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 servervoid
toolInstalled(InstalledToolVersion tool)
Called after the tool installation is completed on the servervoid
toolRemoved(String toolId)
Called after the tool is removed on the servervoid
toolUpdated(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:BundledToolVersions
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.- Specified by:
getAllBundledToolVersions
in interfaceBundledToolVersions
- Returns:
- a collection of all bundled tools
-
getAllBundledToolVersions
@NotNull public Collection<BundledToolVersion> getAllBundledToolVersions(@NotNull ToolType toolType)
- Specified by:
getAllBundledToolVersions
in interfaceBundledToolVersions
-
getInstalledBundledToolVersions
@NotNull public Collection<InstalledToolVersionEx> getInstalledBundledToolVersions(@NotNull ToolType toolType) throws ToolException
- Specified by:
getInstalledBundledToolVersions
in interfaceBundledToolVersions
- Throws:
ToolException
-
getDefaultInstalledBundledToolVersion
@Nullable public InstalledToolVersionEx getDefaultInstalledBundledToolVersion(@NotNull ToolType toolType) throws ToolException
- Specified by:
getDefaultInstalledBundledToolVersion
in interfaceBundledToolVersions
- Throws:
ToolException
-
isBundledToolVersion
public boolean isBundledToolVersion(@NotNull ToolVersion toolVersion)
- Specified by:
isBundledToolVersion
in interfaceBundledToolVersions
-
toolInstallationScheduled
public void toolInstallationScheduled(@NotNull ToolVersion tool)
Description copied from interface:ToolEventsListener
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 server- Specified by:
toolInstallationScheduled
in interfaceToolEventsListener
- Overrides:
toolInstallationScheduled
in classToolEventsListenerAdapter
-
toolInstalled
public void toolInstalled(@NotNull InstalledToolVersion tool)
Description copied from interface:ToolEventsListener
Called after the tool installation is completed on the server- Specified by:
toolInstalled
in interfaceToolEventsListener
- Overrides:
toolInstalled
in classToolEventsListenerAdapter
-
toolUpdated
public void toolUpdated(@NotNull InstalledToolVersion tool)
Description copied from interface:ToolEventsListener
Called after the tool content is updated on the server. The content is updated when the original tool package is changed- Specified by:
toolUpdated
in interfaceToolEventsListener
- Overrides:
toolUpdated
in classToolEventsListenerAdapter
-
toolRemoved
public void toolRemoved(@NotNull String toolId)
Description copied from interface:ToolEventsListener
Called after the tool is removed on the server- Specified by:
toolRemoved
in interfaceToolEventsListener
- Overrides:
toolRemoved
in classToolEventsListenerAdapter
-
toolInstallationFailed
public void toolInstallationFailed(@NotNull ToolInstallationError error)
Description copied from interface:ToolEventsListener
Called when the tool installation is interrupted because of some error- Specified by:
toolInstallationFailed
in interfaceToolEventsListener
- Overrides:
toolInstallationFailed
in classToolEventsListenerAdapter
-
reset
public void reset()
- Specified by:
reset
in interfaceBundledToolVersions
-
-