Class Executables


  • public class Executables
    extends Object
    Convenience methods around Queue.Executable.
    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • Executables

        public Executables()
    • Method Detail

      • getEstimatedDurationFor

        @Deprecated
        public static long getEstimatedDurationFor​(@CheckForNull
                                                   Queue.Executable e)
        Deprecated.
        Returns 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 against AbstractMethodErrors if the Queue.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