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<?,?>
owner
protected 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 BatchRun
createRecord(BatchTask task)
Creates and adds a new reocrd.String
getDisplayName()
BatchRun
getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
String
getIconFileName()
BatchRun
getRecord(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.String
getUrlName()
-
-
-
Field Detail
-
owner
public final AbstractBuild<?,?> owner
-
-
Constructor Detail
-
BatchRunAction
public BatchRunAction(AbstractBuild<?,?> owner)
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in 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.
-
-