Class CurrentVersionTrackerImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.CurrentVersionTrackerImpl
-
- All Implemented Interfaces:
CurrentVersionTracker
public class CurrentVersionTrackerImpl extends Object implements CurrentVersionTracker
-
-
Constructor Summary
Constructors Constructor Description CurrentVersionTrackerImpl(EventDispatcher<VersionedSettingsConfigListener> versionedSettingsConfigEvents, EventDispatcher<BuildServerListener> serverEvents, VersionedSettingsManager versionedSettingsManager, ServerPaths serverPaths, VersionedSettingsOptions options, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrentAnalyzedVersion(SProject p)Returns the last revision, that was analyzed to check whether it is related to Versioned SettingsStringgetCurrentAppliedVersion(SProject p)Returns the revision of current project settings, last successfully appliedCurrentVersionInfogetCurrentVersionInfo(SProject p)voidresetCurrentVersion(Collection<SProject> projects, String reason)voidsetCurrentVersion(SProject p, long settingsRootInstanceId, String appliedVersion, String analyzedVersion)voidsetVersionIfAbsent(SProject p, long settingsRootInstanceId, String appliedVersion, String analyzedVersion)
-
-
-
Constructor Detail
-
CurrentVersionTrackerImpl
public CurrentVersionTrackerImpl(@NotNull EventDispatcher<VersionedSettingsConfigListener> versionedSettingsConfigEvents, @NotNull EventDispatcher<BuildServerListener> serverEvents, @NotNull VersionedSettingsManager versionedSettingsManager, @NotNull ServerPaths serverPaths, @NotNull VersionedSettingsOptions options, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
getCurrentAppliedVersion
@Nullable public String getCurrentAppliedVersion(@NotNull SProject p)
Returns the revision of current project settings, last successfully applied- Specified by:
getCurrentAppliedVersionin interfaceCurrentVersionTracker- Returns:
- see above
-
getCurrentAnalyzedVersion
@Nullable public String getCurrentAnalyzedVersion(@NotNull SProject p)
Returns the last revision, that was analyzed to check whether it is related to Versioned Settings- Specified by:
getCurrentAnalyzedVersionin interfaceCurrentVersionTracker- Returns:
- See Also:
ApplySettingsChangesListener
-
getCurrentVersionInfo
@Nullable public CurrentVersionInfo getCurrentVersionInfo(@NotNull SProject p)
- Specified by:
getCurrentVersionInfoin interfaceCurrentVersionTracker
-
setCurrentVersion
public void setCurrentVersion(@NotNull SProject p, long settingsRootInstanceId, @NotNull String appliedVersion, @NotNull String analyzedVersion)- Specified by:
setCurrentVersionin interfaceCurrentVersionTracker
-
setVersionIfAbsent
public void setVersionIfAbsent(@NotNull SProject p, long settingsRootInstanceId, @NotNull String appliedVersion, @NotNull String analyzedVersion)- Specified by:
setVersionIfAbsentin interfaceCurrentVersionTracker
-
resetCurrentVersion
public void resetCurrentVersion(@NotNull Collection<SProject> projects, @Nullable String reason)- Specified by:
resetCurrentVersionin interfaceCurrentVersionTracker
-
-