Package jetbrains.buildServer.updates
Interface NewVersionAvailabilityProvider
-
- All Known Implementing Classes:
FakeNewVersionAvailabilityProvider
,TeamCityUpdater
public interface NewVersionAvailabilityProvider
Can 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 void
checkForUpdates()
Perform an unscheduled check for updatesDate
getLastCheckDate()
String
getLastCheckError()
default UpdateOption
getUpdateOption()
default UpdateOption
getUpdateOption(String version)
List<UpdateOption>
getUpdateOptions()
default boolean
isUpdateAvailable()
-
-
-
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
-
-