Package hudson.model.queue
Class Executables
- java.lang.Object
-
- hudson.model.queue.Executables
-
public class Executables extends Object
Convenience methods aroundQueue.Executable
.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description Executables()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static long
getEstimatedDurationFor(Queue.Executable e)
Deprecated.callQueue.Executable.getEstimatedDuration()
directlystatic SubTask
getParentOf(Queue.Executable e)
Due to the return type change inQueue.Executable
in 1.377, the caller needs a special precaution now.
-
-
-
Method Detail
-
getParentOf
@NonNull public static SubTask getParentOf(@NonNull Queue.Executable e) throws Error, RuntimeException
Due to the return type change inQueue.Executable
in 1.377, the caller needs a special precaution now.- Parameters:
e
- Executable- Returns:
- Discovered subtask
- Throws:
Error
RuntimeException
-
getEstimatedDurationFor
@Deprecated public static long getEstimatedDurationFor(@CheckForNull Queue.Executable e)
Deprecated.callQueue.Executable.getEstimatedDuration()
directlyReturns the estimated duration for the executable. If the Executable is null the Estimated Duration can't be evaluated, then -1 is returned. This can happen if Computer.getIdleStartMilliseconds() is called before the executable is set to non-null in Computer.run() or if the executor thread exits prematurely, see JENKINS-30456 Protects againstAbstractMethodError
s if theQueue.Executable
implementation was compiled against Hudson prior to 1.383- Parameters:
e
- Executable item- Returns:
- the estimated duration for a given executable, -1 if the executable is null
-
-