Class DeleteProjectTask
java.lang.Object
org.jvnet.hudson.plugins.shelveproject.DeleteProjectTask
- All Implemented Interfaces:
ModelObject,Queue.FlyweightTask,SubTask,Queue.Task,Queue.TransientTask,ResourceActivity
Represents a lightweight task that will take care of Deleting shelved archives.
Creates a
DeleteProjectExecutable in charge of the actual deletion-
Constructor Summary
ConstructorsConstructorDescriptionDeleteProjectTask(String[] shelvedProjectArchiveNames) Creates aDeleteProjectTask -
Method Summary
Modifier and TypeMethodDescriptionvoidlonggetName()Collection<? extends SubTask>getUrl()booleanbooleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Queue.Task
getAffinityKey, getDefaultAuthentication2, getDefaultAuthentication2Methods inherited from interface hudson.model.queue.SubTask
getOwnerExecutable
-
Constructor Details
-
DeleteProjectTask
Creates aDeleteProjectTask- Parameters:
shelvedProjectArchiveNames- The list of shelve archives to delete
-
-
Method Details
-
getAssignedLabel
- Specified by:
getAssignedLabelin interfaceSubTask
-
getLastBuiltOn
- Specified by:
getLastBuiltOnin interfaceSubTask
-
isBuildBlocked
public boolean isBuildBlocked()- Specified by:
isBuildBlockedin interfaceQueue.Task
-
getWhyBlocked
- Specified by:
getWhyBlockedin interfaceQueue.Task
-
getCauseOfBlockage
- Specified by:
getCauseOfBlockagein interfaceQueue.Task
-
getName
- Specified by:
getNamein interfaceQueue.Task
-
getFullDisplayName
- Specified by:
getFullDisplayNamein interfaceQueue.Task
-
getEstimatedDuration
public long getEstimatedDuration()- Specified by:
getEstimatedDurationin interfaceSubTask
-
createExecutable
- Specified by:
createExecutablein interfaceSubTask- Throws:
IOException
-
getOwnerTask
- Specified by:
getOwnerTaskin interfaceSubTask
-
getSameNodeConstraint
- Specified by:
getSameNodeConstraintin interfaceSubTask
-
checkAbortPermission
public void checkAbortPermission()- Specified by:
checkAbortPermissionin interfaceQueue.Task
-
hasAbortPermission
public boolean hasAbortPermission()- Specified by:
hasAbortPermissionin interfaceQueue.Task
-
getUrl
- Specified by:
getUrlin interfaceQueue.Task
-
isConcurrentBuild
public boolean isConcurrentBuild()- Specified by:
isConcurrentBuildin interfaceQueue.Task
-
getSubTasks
- Specified by:
getSubTasksin interfaceQueue.Task
-
getResourceList
- Specified by:
getResourceListin interfaceResourceActivity
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject- Specified by:
getDisplayNamein interfaceResourceActivity
-
getDefaultAuthentication
- Specified by:
getDefaultAuthenticationin interfaceQueue.Task
-
getDefaultAuthentication
- Specified by:
getDefaultAuthenticationin interfaceQueue.Task
-