public abstract class AsyncJob<P extends AsyncJob<P,R>,R extends AsyncRun<P,R>>
extends hudson.model.Job<P,R>
implements hudson.model.Queue.FlyweightTask
| Modifier | Constructor and Description |
|---|---|
protected |
AsyncJob(hudson.model.ItemGroup parent,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected SortedMap<Integer,R> |
_getRuns() |
void |
checkAbortPermission() |
R |
createExecutable() |
void |
doBuild(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Schedules a new build command.
|
hudson.model.Label |
getAssignedLabel()
Because we are modeling an asynchronous task that runs elsewhere,
we don't care where we run.
|
protected Class<R> |
getBuildClass()
Determines Class<R>.
|
hudson.model.queue.CauseOfBlockage |
getCauseOfBlockage() |
hudson.model.Node |
getLastBuiltOn()
Flyweight task doesn't really care where to run.
|
hudson.model.Queue.Task |
getOwnerTask()
This is the master task.
|
hudson.model.ResourceList |
getResourceList()
Default implementation: no constraint.
|
Object |
getSameNodeConstraint()
No constraint because we don't care where to run.
|
Collection<? extends hudson.model.queue.SubTask> |
getSubTasks() |
String |
getWhyBlocked() |
boolean |
hasAbortPermission() |
boolean |
isBuildable() |
boolean |
isBuildBlocked() |
boolean |
isConcurrentBuild()
Most subtypes probably want to support concurrent builds,
although some may want to override.
|
protected R |
loadBuild(File dir)
Loads an existing build record from disk.
|
void |
onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name) |
protected void |
removeRun(R run) |
addProperty, assignBuildNumber, createHistoryWidget, doBuildStatus, doConfigSubmit, doDescription, doDoRename, doRssAll, doRssFailed, getACL, getAllJobs, getAllProperties, getBuild, getBuildByNumber, getBuildDir, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusUrl, getBuildTimeGraph, getDynamic, getEstimatedDuration, getFirstBuild, getIconColor, getLastBuild, getLastBuildsOverThreshold, getLastCompletedBuild, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getLastUnstableBuild, getLastUnsuccessfulBuild, getLogRotator, getNearestBuild, getNearestOldBuild, getNextBuildNumber, getOverrides, getPermalinks, getPronoun, getProperties, getProperty, getProperty, getQueueItem, getTimeline, getWidgets, isBuilding, isHoldOffBuildUntilSave, isInQueue, isKeepDependencies, isLogUpdated, isNameEditable, logRotate, makeSearchIndex, onCopiedFrom, performDelete, removeProperty, removeProperty, renameTo, save, saveNextBuildNumber, setLogRotator, submit, supportsLogRotator, updateNextBuildNumbercheckPermission, delete, delete, doConfigDotXml, doDoDelete, doSetName, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDescriptorByName, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getRootDir, getSearchName, getSearchUrl, getShortUrl, getUrl, hasPermission, onCreatedFromScratch, resolveForCLI, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXmladdAction, doContextMenu, getAction, getAction, getActions, getActionsgetSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorprotected AsyncJob(hudson.model.ItemGroup parent,
String name)
public void onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name)
throws IOException
public void doBuild(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic boolean isConcurrentBuild()
isConcurrentBuild in interface hudson.model.Queue.Taskpublic boolean isBuildable()
public final boolean isBuildBlocked()
isBuildBlocked in interface hudson.model.Queue.Taskpublic final String getWhyBlocked()
getWhyBlocked in interface hudson.model.Queue.Taskpublic void checkAbortPermission()
checkAbortPermission in interface hudson.model.Queue.Taskpublic boolean hasAbortPermission()
hasAbortPermission in interface hudson.model.Queue.Taskpublic Collection<? extends hudson.model.queue.SubTask> getSubTasks()
getSubTasks in interface hudson.model.Queue.Taskpublic hudson.model.Queue.Task getOwnerTask()
getOwnerTask in interface hudson.model.queue.SubTaskpublic Object getSameNodeConstraint()
getSameNodeConstraint in interface hudson.model.queue.SubTaskpublic hudson.model.Label getAssignedLabel()
getAssignedLabel in interface hudson.model.queue.SubTaskpublic hudson.model.Node getLastBuiltOn()
getLastBuiltOn in interface hudson.model.queue.SubTaskpublic hudson.model.queue.CauseOfBlockage getCauseOfBlockage()
getCauseOfBlockage in interface hudson.model.Queue.Taskprotected R loadBuild(File dir) throws IOException
IOExceptionpublic R createExecutable() throws IOException
createExecutable in interface hudson.model.queue.SubTaskIOExceptionprotected void removeRun(R run)
public hudson.model.ResourceList getResourceList()
getResourceList in interface hudson.model.ResourceActivityCopyright © 2004-2012. All Rights Reserved.