Package hudson.model.queue
Class Executables
java.lang.Object
hudson.model.queue.Executables
Convenience methods around
Queue.Executable.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longDeprecated.static SubTaskDue to the return type change inQueue.Executablein 1.377, the caller needs a special precaution now.
-
Constructor Details
-
Executables
public Executables()
-
-
Method Details
-
getParentOf
@NonNull public static SubTask getParentOf(@NonNull Queue.Executable e) throws Error, RuntimeException Due to the return type change inQueue.Executablein 1.377, the caller needs a special precaution now.- Parameters:
e- Executable- Returns:
- Discovered subtask
- Throws:
ErrorRuntimeException
-
getEstimatedDurationFor
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 againstAbstractMethodErrors if theQueue.Executableimplementation 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
-
Queue.Executable.getEstimatedDuration()directly