Class DeleteProjectExecutable
- java.lang.Object
-
- org.jvnet.hudson.plugins.shelveproject.DeleteProjectExecutable
-
- All Implemented Interfaces:
Queue.Executable
,Runnable
public class DeleteProjectExecutable extends Object implements Queue.Executable
AQueue.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
Constructors Constructor Description DeleteProjectExecutable(Queue.Task parentTask, String[] shelvedProjectArchiveNames)
Creates aDeleteProjectExecutable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEstimatedDuration()
Queue.Task
getParent()
void
run()
String
toString()
-
-
-
Constructor Detail
-
DeleteProjectExecutable
public DeleteProjectExecutable(Queue.Task parentTask, String[] shelvedProjectArchiveNames)
Creates aDeleteProjectExecutable
.- Parameters:
parentTask
- The task from which the executable was created. Most likelyDeleteProjectTask
shelvedProjectArchiveNames
- The list of shelve archives to delete
-
-
Method Detail
-
getParent
public Queue.Task 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
public String toString()
- Specified by:
toString
in interfaceQueue.Executable
- Overrides:
toString
in classObject
-
-