Class 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
    • 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, if null 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)