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, waitMethods 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 likelyDeleteProjectTaskshelvedProjectArchiveNames- The list of shelve archives to delete
-
-
Method Details
-
getParent
- Specified by:
getParentin interfaceQueue.Executable
-
run
public void run()- Specified by:
runin interfaceQueue.Executable- Specified by:
runin interfaceRunnable
-
getEstimatedDuration
public long getEstimatedDuration()- Specified by:
getEstimatedDurationin interfaceQueue.Executable
-
toString
- Specified by:
toStringin interfaceQueue.Executable- Overrides:
toStringin classObject
-