Class Result
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.timeEstimation.Result
-
public class Result extends Object
Build estimation algorithm output. Value object (no data changes between any two calls to getters)
-
-
Constructor Summary
Constructors Constructor Description Result(Long timeToWait, Long duration, SBuildAgent targetAgent, WaitReason waitReason)
Initializes object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getDuration()
estimated build duration (seconds) null means unknown.SBuildAgent
getTargetAgent()
the agent the build is going to run on.Long
getTimeToWait()
Estimated time when the build is supposed to start (seconds).WaitReason
getWaitReason()
the special reason for keeping this build in the queue (if any)boolean
isDelayed()
void
markAsDelayed()
call this when we're unsure that our estimation is correctString
toString()
-
-
-
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
-
-