I - the child item typepublic abstract class ComputedFolder<I extends hudson.model.TopLevelItem> extends AbstractFolder<I> implements hudson.model.BuildableItem, hudson.model.Queue.FlyweightTask
Item.CONFIGURE to anyone.items| Modifier | Constructor and Description |
|---|---|
protected |
ComputedFolder(hudson.model.ItemGroup parent,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTrigger(hudson.triggers.Trigger trigger) |
void |
checkAbortPermission() |
protected abstract void |
computeChildren(ChildObserver<I> observer,
hudson.model.TaskListener listener)
Called to (re-)compute the set of children of this folder.
|
protected FolderComputation<I> |
createComputation(FolderComputation<I> previous) |
FolderComputation<I> |
createExecutable() |
org.kohsuke.stapler.HttpResponse |
doBuild(jenkins.util.TimeDuration delay) |
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
List<hudson.model.Action> |
getActions() |
hudson.model.Label |
getAssignedLabel() |
hudson.model.queue.CauseOfBlockage |
getCauseOfBlockage() |
FolderComputation<I> |
getComputation()
URL binding and other purposes.
|
protected File |
getComputationDir() |
org.acegisecurity.Authentication |
getDefaultAuthentication() |
org.acegisecurity.Authentication |
getDefaultAuthentication(hudson.model.Queue.Item item) |
long |
getEstimatedDuration() |
hudson.model.Node |
getLastBuiltOn() |
OrphanedItemStrategy |
getOrphanedItemStrategy() |
List<OrphanedItemStrategyDescriptor> |
getOrphanedItemStrategyDescriptors()
Gets the
OrphanedItemStrategyDescriptors applicable to this folder. |
hudson.model.Queue.Task |
getOwnerTask() |
hudson.model.ResourceList |
getResourceList() |
Object |
getSameNodeConstraint() |
Collection<? extends hudson.model.queue.SubTask> |
getSubTasks() |
Map<hudson.triggers.TriggerDescriptor,hudson.triggers.Trigger<?>> |
getTriggers() |
String |
getWhyBlocked()
Deprecated.
|
boolean |
hasAbortPermission() |
protected void |
init() |
boolean |
isBuildable()
Whether it is permissible to recompute this folder at this time.
|
boolean |
isBuildBlocked() |
boolean |
isConcurrentBuild() |
protected Collection<I> |
orphanedItems(Collection<I> orphaned,
hudson.model.TaskListener listener)
Hook called when some items are no longer in the list.
|
protected String |
renameBlocker()
Allows a subclass to block renames under dynamic conditions.
|
boolean |
scheduleBuild() |
boolean |
scheduleBuild(hudson.model.Cause c) |
boolean |
scheduleBuild(int quietPeriod) |
boolean |
scheduleBuild(int quietPeriod,
hudson.model.Cause c) |
hudson.model.Queue.Item |
scheduleBuild2(int quietPeriod,
hudson.model.Action... actions)
Duck-types
ParameterizedJobMixIn.scheduleBuild2(int, Action...). |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
addProperty, addView, canDelete, deleteView, doChildrenContextMenu, doCreateView, doDoRename, doLastBuild, doSubmitDescription, doViewExistsCheck, getAllJobs, getBuildHealth, getBuildHealthReports, getDescriptor, getHealthMetrics, getIcon, getIconColor, getItem, getItemGroup, getItems, getJob, getJobsDir, getOverrides, getPrimaryView, getPronoun, getProperties, getRootDirFor, getRootDirFor, getStaplerFallback, getUrlChildPrefix, getView, getViewActions, getViews, getViewsTabBar, initViews, loadJobTotal, makeSearchIndex, onDeleted, onLoad, onRenamed, onViewRenamed, performDelete, renameTo, save, setIcon, setPrimaryViewcheckPermission, delete, delete, doConfigDotXml, doDoDelete, doReload, doSetName, getAbsoluteUrl, getACL, getApi, getConfigFile, getDescription, getDescriptorByName, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getRelativeDisplayNameFrom, getRelativeNameFrom, getRelativeNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getUrl, hasPermission, movedTo, onCopiedFrom, onCreatedFromScratch, resolveForCLI, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXmladdAction, doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, replaceActiongetSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdelete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, onLoad, savegetSearchIndex, getSearchName, getSearchUrlprotected ComputedFolder(hudson.model.ItemGroup parent,
String name)
protected final void init()
init in class AbstractFolder<I extends hudson.model.TopLevelItem>protected abstract void computeChildren(ChildObserver<I> observer, hudson.model.TaskListener listener) throws IOException, InterruptedException
observer - how to indicate which children should be seenlistener - a way to report progressIOExceptionInterruptedExceptionprotected Collection<I> orphanedItems(Collection<I> orphaned, hudson.model.TaskListener listener) throws IOException, InterruptedException
Item.delete() or ItemGroup.onDeleted(T) or ItemListener.fireOnDeleted(hudson.model.Item) yourself.
By default, uses getOrphanedItemStrategy().orphaned - a nonempty set of items which no longer are supposed to be hereorphaned, representing those children which ought to be removed from the folder now; items not listed will be left alone for the time beingIOExceptionInterruptedExceptionpublic void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
doConfigSubmit in class AbstractFolder<I extends hudson.model.TopLevelItem>IOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionprotected void submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
submit in class AbstractFolder<I extends hudson.model.TopLevelItem>IOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionpublic Map<hudson.triggers.TriggerDescriptor,hudson.triggers.Trigger<?>> getTriggers()
public void addTrigger(hudson.triggers.Trigger trigger)
public List<hudson.model.Action> getActions()
getActions in class hudson.model.Actionablepublic boolean isBuildable()
public org.kohsuke.stapler.HttpResponse doBuild(@QueryParameter
jenkins.util.TimeDuration delay)
@CheckForNull public hudson.model.Queue.Item scheduleBuild2(int quietPeriod, hudson.model.Action... actions)
ParameterizedJobMixIn.scheduleBuild2(int, Action...).public boolean scheduleBuild()
scheduleBuild in interface hudson.model.BuildableItempublic boolean scheduleBuild(hudson.model.Cause c)
scheduleBuild in interface hudson.model.BuildableItempublic boolean scheduleBuild(int quietPeriod)
scheduleBuild in interface hudson.model.BuildableItempublic boolean scheduleBuild(int quietPeriod,
hudson.model.Cause c)
scheduleBuild in interface hudson.model.BuildableItempublic boolean isBuildBlocked()
isBuildBlocked in interface hudson.model.Queue.Task@Deprecated public String getWhyBlocked()
getWhyBlocked in interface hudson.model.Queue.Taskpublic hudson.model.queue.CauseOfBlockage getCauseOfBlockage()
getCauseOfBlockage in interface hudson.model.Queue.Taskpublic void checkAbortPermission()
checkAbortPermission in interface hudson.model.Queue.Taskpublic boolean hasAbortPermission()
hasAbortPermission in interface hudson.model.Queue.Taskpublic boolean isConcurrentBuild()
isConcurrentBuild in interface hudson.model.Queue.Taskpublic Collection<? extends hudson.model.queue.SubTask> getSubTasks()
getSubTasks in interface hudson.model.Queue.Taskpublic org.acegisecurity.Authentication getDefaultAuthentication()
getDefaultAuthentication in interface hudson.model.Queue.Taskpublic org.acegisecurity.Authentication getDefaultAuthentication(hudson.model.Queue.Item item)
getDefaultAuthentication in interface hudson.model.Queue.Taskpublic hudson.model.Label getAssignedLabel()
getAssignedLabel in interface hudson.model.queue.SubTaskpublic hudson.model.Node getLastBuiltOn()
getLastBuiltOn in interface hudson.model.queue.SubTaskpublic long getEstimatedDuration()
getEstimatedDuration in interface hudson.model.queue.SubTaskpublic final FolderComputation<I> createExecutable() throws IOException
createExecutable in interface hudson.model.queue.SubTaskIOException@Nonnull protected FolderComputation<I> createComputation(@CheckForNull FolderComputation<I> previous)
public hudson.model.Queue.Task getOwnerTask()
getOwnerTask in interface hudson.model.queue.SubTaskpublic Object getSameNodeConstraint()
getSameNodeConstraint in interface hudson.model.queue.SubTaskpublic hudson.model.ResourceList getResourceList()
getResourceList in interface hudson.model.ResourceActivityprotected File getComputationDir()
@CheckForNull public FolderComputation<I> getComputation()
protected String renameBlocker()
AbstractFolderrenameBlocker in class AbstractFolder<I extends hudson.model.TopLevelItem>@NonNull public OrphanedItemStrategy getOrphanedItemStrategy()
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @NonNull public List<OrphanedItemStrategyDescriptor> getOrphanedItemStrategyDescriptors()
OrphanedItemStrategyDescriptors applicable to this folder.Copyright © 2016. All rights reserved.