hudson.model
Interface Queue.Executable

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractBuild, AbstractMavenBuild, Build, FreeStyleBuild, MatrixBuild, MatrixRun, MavenBuild, MavenModuleSetBuild
Enclosing class:
Queue

public static interface Queue.Executable
extends Runnable

Represents the real meat of the computation run by Executor.

Views

Implementation must have executorCell.jelly, which is used to render the HTML that indicates this executable is executing.


Method Summary
 long getEstimatedDuration()
          Estimate of how long will it take to execute this executable.
 SubTask getParent()
          Task from which this executable was created.
 void run()
          Called by Executor to perform the task
 String toString()
          Used to render the HTML.
 

Method Detail

getParent

SubTask getParent()
Task from which this executable was created. Never null.

Since this method went through a signature change in 1.377, the invocation may results in AbstractMethodError. Use Executables#getParentOf(Executable) that avoids this.


run

void run()
Called by Executor to perform the task

Specified by:
run in interface Runnable

getEstimatedDuration

long getEstimatedDuration()
Estimate of how long will it take to execute this executable. Measured in milliseconds. Please, consider using Executables#getEstimatedDurationFor(Executable) to protected against AbstractMethodErrors!

Returns:
-1 if it's impossible to estimate.
Since:
1.383

toString

String toString()
Used to render the HTML. Should be a human readable text of what this executable is.

Overrides:
toString in class Object


Copyright © 2004-2013. All Rights Reserved.