hudson.plugins.findbugs
Class MavenFindBugsResultAction

java.lang.Object
  extended by hudson.plugins.findbugs.util.AbstractResultAction<FindBugsResult>
      extended by hudson.plugins.findbugs.FindBugsResultAction
          extended by hudson.plugins.findbugs.MavenFindBugsResultAction
All Implemented Interfaces:
hudson.maven.AggregatableAction, hudson.maven.MavenAggregatedReport, hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, ResultAction<FindBugsResult>, ToolTipProvider, org.kohsuke.stapler.StaplerProxy

public class MavenFindBugsResultAction
extends FindBugsResultAction
implements hudson.maven.AggregatableAction, hudson.maven.MavenAggregatedReport

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

Author:
Ulli Hafner

Constructor Summary
MavenFindBugsResultAction(hudson.model.AbstractBuild<?,?> owner, HealthDescriptor healthDescriptor, java.lang.String height, FindBugsResult result)
          Creates a new instance of MavenFindBugsResultAction.
MavenFindBugsResultAction(hudson.maven.MavenModuleSetBuild owner, HealthDescriptor healthDescriptor, java.lang.String height)
          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.findbugs.FindBugsResultAction
getDescriptor, getDisplayName, getMultipleItemsTooltip, getPreviousResultAction, getSingleItemTooltip
 
Methods inherited from class hudson.plugins.findbugs.util.AbstractResultAction
addModule, buildDataSet, createAggregatedResult, createResult, doGraph, doGraphMap, getBuildHealth, getHealthDescriptor, 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

MavenFindBugsResultAction

public MavenFindBugsResultAction(hudson.maven.MavenModuleSetBuild owner,
                                 HealthDescriptor healthDescriptor,
                                 java.lang.String height)
Creates a new instance of MavenFindBugsResultAction.

Parameters:
owner - the associated build of this action
healthDescriptor - health descriptor to use
height - the height of the trend graph

MavenFindBugsResultAction

public MavenFindBugsResultAction(hudson.model.AbstractBuild<?,?> owner,
                                 HealthDescriptor healthDescriptor,
                                 java.lang.String height,
                                 FindBugsResult result)
Creates a new instance of MavenFindBugsResultAction.

Parameters:
owner - the associated build of this action
healthDescriptor - health descriptor to use
height - the height of the trend graph
result - the result in this build
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.