hudson.plugins.tasks
Class MavenTasksResultAction

java.lang.Object
  extended by hudson.plugins.tasks.util.AbstractResultAction<TasksResult>
      extended by hudson.plugins.tasks.TasksResultAction
          extended by hudson.plugins.tasks.MavenTasksResultAction
All Implemented Interfaces:
hudson.maven.AggregatableAction, hudson.maven.MavenAggregatedReport, hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, ResultAction<TasksResult>, ToolTipProvider, java.io.Serializable, org.kohsuke.stapler.StaplerProxy

public class MavenTasksResultAction
extends TasksResultAction
implements hudson.maven.AggregatableAction, hudson.maven.MavenAggregatedReport

A TasksResultAction for native maven jobs. This action additionally provides result aggregation for sub-modules and for the main project.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
MavenTasksResultAction(hudson.model.AbstractBuild<?,?> owner, HealthReportBuilder healthReportBuilder, java.lang.String height, java.lang.String high, java.lang.String normal, java.lang.String low)
          Creates a new instance of MavenFindBugsResultAction.
MavenTasksResultAction(hudson.model.AbstractBuild<?,?> owner, HealthReportBuilder healthReportBuilder, java.lang.String height, java.lang.String high, java.lang.String normal, java.lang.String low, TasksResult result)
          Creates a new instance of MavenFindBugsResultAction.
 
Method Summary
 hudson.maven.MavenAggregatedReport createAggregatedAction(hudson.maven.MavenModuleSetBuild build, java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds)
          
 java.lang.Class<? extends hudson.maven.AggregatableAction> getIndividualActionType()
          
 hudson.model.Action getProjectAction(hudson.maven.MavenModuleSet moduleSet)
          
 void update(java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds, hudson.maven.MavenBuild newBuild)
          Called whenever a new module build is completed, to update the aggregated report.
 
Methods inherited from class hudson.plugins.tasks.TasksResultAction
getDescriptor, getDisplayName, getMultipleItemsTooltip, getPreviousResultAction, getSingleItemTooltip
 
Methods inherited from class hudson.plugins.tasks.util.AbstractResultAction
buildDataSet, doGraph, doGraphMap, getBuildHealth, getHealthReportBuilder, getIconFileName, getOwner, getPreviousBuild, getResult, getTarget, getUrlName, hasPreviousResultAction, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
 
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
 

Constructor Detail

MavenTasksResultAction

public MavenTasksResultAction(hudson.model.AbstractBuild<?,?> owner,
                              HealthReportBuilder healthReportBuilder,
                              java.lang.String height,
                              java.lang.String high,
                              java.lang.String normal,
                              java.lang.String low,
                              TasksResult result)
Creates a new instance of MavenFindBugsResultAction.

Parameters:
owner - the associated build of this action
healthReportBuilder - health builder to use
height - the height of the trend graph
high - tag identifiers indicating high priority
normal - tag identifiers indicating normal priority
low - tag identifiers indicating low priority
result - the result in this build

MavenTasksResultAction

public MavenTasksResultAction(hudson.model.AbstractBuild<?,?> owner,
                              HealthReportBuilder healthReportBuilder,
                              java.lang.String height,
                              java.lang.String high,
                              java.lang.String normal,
                              java.lang.String low)
Creates a new instance of MavenFindBugsResultAction.

Parameters:
owner - the associated build of this action
healthReportBuilder - health builder to use
height - the height of the trend graph
high - tag identifiers indicating high priority
normal - tag identifiers indicating normal priority
low - tag identifiers indicating low priority
Method Detail

createAggregatedAction

public hudson.maven.MavenAggregatedReport createAggregatedAction(hudson.maven.MavenModuleSetBuild build,
                                                                 java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds)

Specified by:
createAggregatedAction in interface hudson.maven.AggregatableAction

getProjectAction

public hudson.model.Action getProjectAction(hudson.maven.MavenModuleSet moduleSet)

Specified by:
getProjectAction in interface hudson.maven.MavenAggregatedReport

getIndividualActionType

public java.lang.Class<? extends hudson.maven.AggregatableAction> getIndividualActionType()

Specified by:
getIndividualActionType in interface hudson.maven.MavenAggregatedReport

update

public void update(java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds,
                   hudson.maven.MavenBuild newBuild)
Called whenever a new module build is completed, to update the aggregated report. When multiple builds complete simultaneously, Hudson serializes the execution of this method, so this method needs not be concurrency-safe.

Specified by:
update in interface hudson.maven.MavenAggregatedReport
Parameters:
moduleBuilds - Same as MavenModuleSet.getModuleBuilds() but provided for convenience and efficiency.
newBuild - Newly completed build.


Copyright © 2008. All Rights Reserved.