Class StuckBuildDetector
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.StuckBuildDetector
-
public class StuckBuildDetector extends Object
Detector of builds in a build queue which stuck in it for a long time.- Since:
- 2018.2
- Author:
- Mikhail Khorkov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StuckBuildDetector.Detected
-
Constructor Summary
Constructors Constructor Description StuckBuildDetector(BuildQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StuckBuildDetector.Detected
getStuckBuilds(long threshold, Collection<SBuildType> interestingBuildTypes)
Gets builds which stuck in the build queue for a specified amount of time.void
setTimeService(TimeService timeService)
-
-
-
Constructor Detail
-
StuckBuildDetector
public StuckBuildDetector(@NotNull BuildQueue queue)
-
-
Method Detail
-
getStuckBuilds
public StuckBuildDetector.Detected getStuckBuilds(long threshold, @Nullable Collection<SBuildType> interestingBuildTypes)
Gets builds which stuck in the build queue for a specified amount of time.- Parameters:
threshold
- how long a build has to stay in the build queue for been detected (millis)interestingBuildTypes
- which build types has to be analyzed, ifnull
then all types will be analyzed.- Returns:
- builds which stuck in the build queue for a specified amount of time
-
setTimeService
public void setTimeService(TimeService timeService)
-
-