Class DeleteProjectExecutable
java.lang.Object
org.jvnet.hudson.plugins.shelveproject.DeleteProjectExecutable
- All Implemented Interfaces:
Queue.Executable
,Runnable
,WithConsoleUrl
A
Queue.Executable
that will take care of removing the provided shelvedProjects/
This executable will take care of deleting both the list of archive provided and also their associated metadata file (if relevant)
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteProjectExecutable
(Queue.Task parentTask, String[] shelvedProjectArchiveNames) Creates aDeleteProjectExecutable
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hudson.model.Queue.Executable
getConsoleUrl, getParentExecutable
-
Constructor Details
-
DeleteProjectExecutable
Creates aDeleteProjectExecutable
.- Parameters:
parentTask
- The task from which the executable was created. Most likelyDeleteProjectTask
shelvedProjectArchiveNames
- The list of shelve archives to delete
-
-
Method Details
-
getParent
- Specified by:
getParent
in interfaceQueue.Executable
-
run
public void run()- Specified by:
run
in interfaceQueue.Executable
- Specified by:
run
in interfaceRunnable
-
getEstimatedDuration
public long getEstimatedDuration()- Specified by:
getEstimatedDuration
in interfaceQueue.Executable
-
toString
- Specified by:
toString
in interfaceQueue.Executable
- Overrides:
toString
in classObject
-