Package hudson.plugins.batch_task
Class BatchRunAction
- java.lang.Object
-
- hudson.plugins.batch_task.BatchRunAction
-
- All Implemented Interfaces:
Action,ModelObject
public final class BatchRunAction extends Object implements Action
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description AbstractBuild<?,?>ownerprotected List<BatchRun>records
-
Constructor Summary
Constructors Constructor Description BatchRunAction(AbstractBuild<?,?> owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BatchRuncreateRecord(BatchTask task)Creates and adds a new reocrd.StringgetDisplayName()BatchRungetDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)StringgetIconFileName()BatchRungetRecord(int id)Returns the record that has the given ID.List<BatchRun>getRecords()Gets run records.List<BatchRun>getRecords(String taskName)Get run records for a particular task.StringgetUrlName()
-
-
-
Field Detail
-
owner
public final AbstractBuild<?,?> owner
-
-
Constructor Detail
-
BatchRunAction
public BatchRunAction(AbstractBuild<?,?> owner)
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlNamein interfaceAction
-
createRecord
protected BatchRun createRecord(BatchTask task) throws IOException
Creates and adds a new reocrd.- Throws:
IOException
-
getRecords
public List<BatchRun> getRecords(String taskName)
Get run records for a particular task.- Parameters:
taskName- Get runs for this task
-
getRecord
public BatchRun getRecord(int id)
Returns the record that has the given ID.
-
-