hudson.plugins.batch_task
Class BatchRunAction

java.lang.Object
  extended by hudson.plugins.batch_task.BatchRunAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public final class BatchRunAction
extends Object
implements hudson.model.Action

Build Action that shows the records of executed tasks.

Author:
Kohsuke Kawaguchi

Field Summary
 hudson.model.AbstractBuild<?,?> owner
           
protected  List<BatchRun> records
           
 
Constructor Summary
BatchRunAction(hudson.model.AbstractBuild<?,?> owner)
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

public final hudson.model.AbstractBuild<?,?> owner

records

protected final List<BatchRun> records
Constructor Detail

BatchRunAction

public BatchRunAction(hudson.model.AbstractBuild<?,?> owner)
Method Detail

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

createRecord

protected BatchRun createRecord(BatchTask task)
                         throws IOException
Creates and adds a new reocrd.

Throws:
IOException

getRecords

public List<BatchRun> getRecords()
Gets run records. Newer ones first.


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.


getDynamic

public BatchRun getDynamic(String token,
                           org.kohsuke.stapler.StaplerRequest req,
                           org.kohsuke.stapler.StaplerResponse rsp)


Copyright © 2004-2013. All Rights Reserved.