Package hudson.plugins.distfork
Class DistForkTask
- java.lang.Object
-
- hudson.plugins.distfork.DistForkTask
-
- All Implemented Interfaces:
ModelObject,SubTask,Queue.Task,ResourceActivity
public class DistForkTask extends Object implements Queue.Task
Queue.Taskthat represents a distfork work.TODO: once we authenticate the CLI client, allow that user to abort.
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description DistForkTask(Label label, String displayName, long estimatedDuration, Runnable runnable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAbortPermission()Queue.ExecutablecreateExecutable()LabelgetAssignedLabel()CauseOfBlockagegetCauseOfBlockage()AuthenticationgetDefaultAuthentication()AuthenticationgetDefaultAuthentication(Queue.Item item)StringgetDisplayName()longgetEstimatedDuration()StringgetFullDisplayName()NodegetLastBuiltOn()StringgetName()Queue.TaskgetOwnerTask()ResourceListgetResourceList()ObjectgetSameNodeConstraint()Collection<? extends SubTask>getSubTasks()StringgetUrl()StringgetWhyBlocked()booleanhasAbortPermission()booleanisBuildBlocked()booleanisConcurrentBuild()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Queue.Task
getAffinityKey, getDefaultAuthentication2, getDefaultAuthentication2
-
-
-
-
Method Detail
-
getAssignedLabel
public Label getAssignedLabel()
- Specified by:
getAssignedLabelin interfaceSubTask
-
getLastBuiltOn
public Node getLastBuiltOn()
- Specified by:
getLastBuiltOnin interfaceSubTask
-
isBuildBlocked
public boolean isBuildBlocked()
- Specified by:
isBuildBlockedin interfaceQueue.Task
-
getWhyBlocked
public String getWhyBlocked()
- Specified by:
getWhyBlockedin interfaceQueue.Task
-
getName
public String getName()
- Specified by:
getNamein interfaceQueue.Task
-
getFullDisplayName
public String getFullDisplayName()
- Specified by:
getFullDisplayNamein interfaceQueue.Task
-
getEstimatedDuration
public long getEstimatedDuration()
- Specified by:
getEstimatedDurationin interfaceSubTask
-
createExecutable
public Queue.Executable createExecutable() throws IOException
- Specified by:
createExecutablein interfaceSubTask- Throws:
IOException
-
checkAbortPermission
public void checkAbortPermission()
- Specified by:
checkAbortPermissionin interfaceQueue.Task
-
hasAbortPermission
public boolean hasAbortPermission()
- Specified by:
hasAbortPermissionin interfaceQueue.Task
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfaceQueue.Task
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceModelObject- Specified by:
getDisplayNamein interfaceResourceActivity
-
getResourceList
public ResourceList getResourceList()
- Specified by:
getResourceListin interfaceResourceActivity
-
getCauseOfBlockage
public CauseOfBlockage getCauseOfBlockage()
- Specified by:
getCauseOfBlockagein interfaceQueue.Task
-
isConcurrentBuild
public boolean isConcurrentBuild()
- Specified by:
isConcurrentBuildin interfaceQueue.Task
-
getSubTasks
public Collection<? extends SubTask> getSubTasks()
- Specified by:
getSubTasksin interfaceQueue.Task
-
getOwnerTask
public Queue.Task getOwnerTask()
- Specified by:
getOwnerTaskin interfaceSubTask
-
getSameNodeConstraint
public Object getSameNodeConstraint()
- Specified by:
getSameNodeConstraintin interfaceSubTask
-
getDefaultAuthentication
@Nonnull public Authentication getDefaultAuthentication()
- Specified by:
getDefaultAuthenticationin interfaceQueue.Task
-
getDefaultAuthentication
public Authentication getDefaultAuthentication(Queue.Item item)
- Specified by:
getDefaultAuthenticationin interfaceQueue.Task
-
-