Class SlowVcsRootInstanceTracker
- java.lang.Object
-
- jetbrains.buildServer.buildTriggers.vcs.SlowVcsRootInstanceTracker
-
public class SlowVcsRootInstanceTracker extends Object
This class tracks information about slow VcsRootInstances which prevent VCS Trigger to start a build within a specified quiet period.- Since:
- 10.0 (10/05/16)
- Author:
- kir
-
-
Constructor Summary
Constructors Constructor Description SlowVcsRootInstanceTracker(EventDispatcher<BuildServerListener> dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRootWithLargeChangesCheckingInterval(SBuildType buildType, VcsRootInstance rootInstance)
Map<SBuildType,List<SVcsRoot>>
getDelayingRoots()
Return a map from a build configuration with a slow build type to a list of VCS Roots which cause the delay.void
removeFromForcedChecks(VcsRootInstance instance)
void
removeRoot(SBuildType buildType, VcsRootInstance instance)
boolean
shouldForceChangesChecking(VcsRootInstanceEx rootInstance)
Return true if given VCS Root Instance was not forced for checking for changes or it has finished checking for changes since the previous invocation of the method
-
-
-
Constructor Detail
-
SlowVcsRootInstanceTracker
public SlowVcsRootInstanceTracker(EventDispatcher<BuildServerListener> dispatcher)
-
-
Method Detail
-
getDelayingRoots
@NotNull public Map<SBuildType,List<SVcsRoot>> getDelayingRoots()
Return a map from a build configuration with a slow build type to a list of VCS Roots which cause the delay. If a record for a build type is returned, there is at least one VCS Root associated with it.- Returns:
- see above
-
addRootWithLargeChangesCheckingInterval
public void addRootWithLargeChangesCheckingInterval(SBuildType buildType, VcsRootInstance rootInstance)
-
removeRoot
public void removeRoot(@NotNull SBuildType buildType, @NotNull VcsRootInstance instance)
-
removeFromForcedChecks
public void removeFromForcedChecks(@NotNull VcsRootInstance instance)
-
shouldForceChangesChecking
public boolean shouldForceChangesChecking(VcsRootInstanceEx rootInstance)
Return true if given VCS Root Instance was not forced for checking for changes or it has finished checking for changes since the previous invocation of the method- Parameters:
rootInstance
-- Returns:
- see above
-
-