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 java.lang.Object
implements hudson.model.Action

Build Action that shows the records of executed tasks.

Author:
Kohsuke Kawaguchi

Field Summary
 hudson.model.AbstractBuild<?,?> owner
           
protected  java.util.List<BatchRun> records
           
 
Constructor Summary
BatchRunAction(hudson.model.AbstractBuild<?,?> owner)
           
 
Method Summary
protected  BatchRun createRecord(BatchTask task)
          Creates and adds a new reocrd.
 java.lang.String getDisplayName()
           
 BatchRun getDynamic(java.lang.String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 java.lang.String getIconFileName()
           
 BatchRun getRecord(int id)
          Returns the record that has the given ID.
 java.util.List<BatchRun> getRecords()
          Gets run records.
 java.lang.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 java.util.List<BatchRun> records
Constructor Detail

BatchRunAction

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

getIconFileName

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

getDisplayName

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

getUrlName

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

createRecord

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

Throws:
java.io.IOException

getRecords

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


getRecord

public BatchRun getRecord(int id)
Returns the record that has the given ID.


getDynamic

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


Copyright © 2009. All Rights Reserved.