Package jetbrains.buildServer.updates
Interface NewVersionAvailabilityProvider
-
- All Known Implementing Classes:
FakeNewVersionAvailabilityProvider,TeamCityUpdater
public interface NewVersionAvailabilityProviderCan be used to check if new version of TeamCity is available.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcheckForUpdates()Perform an unscheduled check for updatesDategetLastCheckDate()StringgetLastCheckError()default UpdateOptiongetUpdateOption()default UpdateOptiongetUpdateOption(String version)List<UpdateOption>getUpdateOptions()default booleanisUpdateAvailable()
-
-
-
Method Detail
-
isUpdateAvailable
default boolean isUpdateAvailable()
-
getUpdateOption
@Nullable default UpdateOption getUpdateOption()
- Returns:
- preferable update option or null if new version is not available
-
getUpdateOption
@Nullable default UpdateOption getUpdateOption(@NotNull String version)
-
getUpdateOptions
@NotNull List<UpdateOption> getUpdateOptions()
- Returns:
- all available update options
-
checkForUpdates
void checkForUpdates()
Perform an unscheduled check for updates
-
getLastCheckError
@Nullable String getLastCheckError()
- Returns:
- error when last check failed, null otherwise
-
getLastCheckDate
@Nullable Date getLastCheckDate()
- Returns:
- last check timestamp, null if have not checked yet
-
-