/** * Estimate of how long will it take to execute this executable. * Measured in milliseconds. * * @return -1 if it's impossible to estimate; default, {@link SubTask#getEstimatedDuration} * @since 1.383 */ default long getEstimatedDuration() { return Executables.getParentOf(this).getEstimatedDuration(); }
/** * Estimate of how long will it take to execute this executable. * Measured in milliseconds. * * @return -1 if it's impossible to estimate; default, {@link SubTask#getEstimatedDuration} * @since 1.383 */ default long getEstimatedDuration() { return Executables.getParentOf(this).getEstimatedDuration(); }
/** * Returns the estimated duration for the executable. * Protects against {@link AbstractMethodError}s if the {@link Executable} implementation * was compiled against Hudson < 1.383 */ public static long getEstimatedDurationFor(Executable e) { try { return _getEstimatedDuration(e); } catch (AbstractMethodError error) { return e.getParent().getEstimatedDuration(); } }
/** * Returns the estimated duration for the executable. * Protects against {@link AbstractMethodError}s if the {@link Executable} implementation * was compiled against Hudson < 1.383 */ public static long getEstimatedDurationFor(Executable e) { try { return _getEstimatedDuration(e); } catch (AbstractMethodError error) { return e.getParent().getEstimatedDuration(); } }
/** * Returns the estimated duration for the executable. Protects against * {@link AbstractMethodError}s if the {@link Executable} implementation was * compiled against Hudson < 1.383 */ public static long getEstimatedDurationFor(Executable e) { try { return _getEstimatedDuration(e); } catch (AbstractMethodError error) { return e.getParent().getEstimatedDuration(); } }
/** * Returns the estimated duration for the executable. * Protects against {@link AbstractMethodError}s if the {@link Executable} implementation * was compiled against Hudson < 1.383 */ public static long getEstimatedDurationFor(Executable e) { try { return _getEstimatedDuration(e); } catch (AbstractMethodError error) { return e.getParent().getEstimatedDuration(); } }