Class Result


  • public class Result
    extends Object
    Build estimation algorithm output. Value object (no data changes between any two calls to getters)
    • Constructor Detail

      • Result

        public Result​(@Nullable
                      Long timeToWait,
                      @Nullable
                      Long duration,
                      @Nullable
                      SBuildAgent targetAgent,
                      @Nullable
                      WaitReason waitReason)
        Initializes object. For parameter description see javadoc for the corresponding getters.
    • Method Detail

      • getTimeToWait

        @Nullable
        public Long getTimeToWait()
        Estimated time when the build is supposed to start (seconds). null means unknown. Long.MAX_VALUE means the time is infinite (the event will never occur).
      • getDuration

        @Nullable
        public Long getDuration()
        estimated build duration (seconds) null means unknown. Long.MAX_VALUE means the time is infinite (the event will never occur).
      • getTargetAgent

        @Nullable
        public SBuildAgent getTargetAgent()
        the agent the build is going to run on. null means unknown.
      • getWaitReason

        @Nullable
        public WaitReason getWaitReason()
        the special reason for keeping this build in the queue (if any)
      • markAsDelayed

        public void markAsDelayed()
        call this when we're unsure that our estimation is correct
      • isDelayed

        public boolean isDelayed()
        Returns:
        true if this result are unreliable, i.e. previous builds (or this one) is delayed