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 String
getCurrentAnalyzedVersion(SProject p)
Returns the last revision, that was analyzed to check whether it is related to Versioned SettingsString
getCurrentAppliedVersion(SProject p)
Returns the revision of current project settings, last successfully appliedCurrentVersionInfo
getCurrentVersionInfo(SProject p)
void
resetCurrentVersion(Collection<SProject> projects, String reason)
void
setCurrentVersion(SProject p, long settingsRootInstanceId, String appliedVersion, String analyzedVersion)
void
setVersionIfAbsent(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:
getCurrentAppliedVersion
in 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:
getCurrentAnalyzedVersion
in interfaceCurrentVersionTracker
- Returns:
- See Also:
ApplySettingsChangesListener
-
getCurrentVersionInfo
@Nullable public CurrentVersionInfo getCurrentVersionInfo(@NotNull SProject p)
- Specified by:
getCurrentVersionInfo
in interfaceCurrentVersionTracker
-
setCurrentVersion
public void setCurrentVersion(@NotNull SProject p, long settingsRootInstanceId, @NotNull String appliedVersion, @NotNull String analyzedVersion)
- Specified by:
setCurrentVersion
in interfaceCurrentVersionTracker
-
setVersionIfAbsent
public void setVersionIfAbsent(@NotNull SProject p, long settingsRootInstanceId, @NotNull String appliedVersion, @NotNull String analyzedVersion)
- Specified by:
setVersionIfAbsent
in interfaceCurrentVersionTracker
-
resetCurrentVersion
public void resetCurrentVersion(@NotNull Collection<SProject> projects, @Nullable String reason)
- Specified by:
resetCurrentVersion
in interfaceCurrentVersionTracker
-
-