hudson.plugins.covcomplplot
Class CovComplPlotPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by hudson.plugins.covcomplplot.CovComplPlotPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class CovComplPlotPublisher
extends hudson.tasks.Notifier

CovComplPlotPublisher is the main class for this plugin. It's a subclass of Notifier so that CovComplPlotPublisher should be executed after corresponding coverage plugin is performed.


Nested Class Summary
static class CovComplPlotPublisher.DescriptorImpl
          Descriptor for CovComplPlotPublisher.
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
 Analyzer analyzer
          Analyzer to be used in this instance.
 boolean excludeGetterSetter
          Exclude the getter / setter methods
 boolean verbose
          Verbose logging mode
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
CovComplPlotPublisher(Analyzer analyzer, boolean excludeGetterSetter, boolean verbose, boolean locateTopMost)
          Constructor
 
Method Summary
 CovComplPlotBuildAction createCovComplScatterPlotBuildAction(hudson.model.AbstractBuild<?,?> build, List<MethodInfo> methods)
          Create CovComplPlotBuildAction
 Analyzer getAnalyzer()
          Get analyzer
 List<MethodInfo> getCovComplMethodInfoList(Analyzer analyzer, hudson.model.AbstractBuild<?,?> build, boolean excludeGetterSetter, String rootDir, LoggerWrapper logger)
          Create MethodInfo list using given analyzer.
 CovComplPlotPublisher.DescriptorImpl getDescriptor()
           
protected  LoggerWrapper getLoggerWrapper(hudson.model.BuildListener listener)
          Get LoggerWrapper instance from build listener.
This method is a subject to be overridden for unit test
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 boolean isLocateTopMost()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 void setLocateTopMost(boolean locateTopMost)
           
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectActions, prebuild
 

Field Detail

analyzer

public final Analyzer analyzer
Analyzer to be used in this instance.


verbose

public final boolean verbose
Verbose logging mode


excludeGetterSetter

public final boolean excludeGetterSetter
Exclude the getter / setter methods

Constructor Detail

CovComplPlotPublisher

@DataBoundConstructor
public CovComplPlotPublisher(Analyzer analyzer,
                                                  boolean excludeGetterSetter,
                                                  boolean verbose,
                                                  boolean locateTopMost)
Constructor

Parameters:
analyzer - analyzer to be used
excludeGetterSetter - true if getter/setter methods are excluded.
verbose - true if verbose logging mode is on
Method Detail

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer

createCovComplScatterPlotBuildAction

public CovComplPlotBuildAction createCovComplScatterPlotBuildAction(hudson.model.AbstractBuild<?,?> build,
                                                                    List<MethodInfo> methods)
                                                             throws IOException
Create CovComplPlotBuildAction

Parameters:
build - Current AbstractBuild instance.
methods - MethodInfo list which will be contained in CovComplPlotBuildAction instance.
Returns:
CovComplPlotBuildAction
Throws:
IOException

getCovComplMethodInfoList

public List<MethodInfo> getCovComplMethodInfoList(Analyzer analyzer,
                                                  hudson.model.AbstractBuild<?,?> build,
                                                  boolean excludeGetterSetter,
                                                  String rootDir,
                                                  LoggerWrapper logger)
                                           throws InvalidHudsonProjectException
Create MethodInfo list using given analyzer.

Parameters:
analyzer - analyzer
build - current build
excludeGetterSetter - true if getter/setter methods are excluded.
rootDir -
logger - logger
Returns:
MethodInfo list
Throws:
InvalidHudsonProjectException - occurs when the data extracting is failed by some problem in project.

getProjectAction

public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
Specified by:
getProjectAction in interface hudson.tasks.BuildStep
Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer

getLoggerWrapper

protected LoggerWrapper getLoggerWrapper(hudson.model.BuildListener listener)
Get LoggerWrapper instance from build listener.
This method is a subject to be overridden for unit test

Parameters:
listener - listener from which the logger is extracted.
Returns:
LoggerWrapper instance

getDescriptor

public CovComplPlotPublisher.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.tasks.Notifier

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()

getAnalyzer

public Analyzer getAnalyzer()
Get analyzer

Returns:
analyzer

setLocateTopMost

public void setLocateTopMost(boolean locateTopMost)

isLocateTopMost

public boolean isLocateTopMost()


Copyright © 2004-2011. All Rights Reserved.