hudson.plugins.plot
Class MatrixPlotPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by hudson.plugins.plot.AbstractPlotPublisher
                  extended by hudson.plugins.plot.MatrixPlotPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class MatrixPlotPublisher
extends AbstractPlotPublisher

Author:
lucinka

Nested Class Summary
static class MatrixPlotPublisher.DescriptorImpl
           
 
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
static MatrixPlotPublisher.DescriptorImpl DESCRIPTOR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
MatrixPlotPublisher()
           
 
Method Summary
 void addPlot(Plot plot)
          Adds the new plot to the plot data structures managed by this object.
 hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
          Called by Jenkins.
 List<String> getOriginalGroups(hudson.matrix.MatrixConfiguration configuration)
          Returns all group names as the original user specified strings.
 List<Plot> getPlots()
           
 List<Plot> getPlots(hudson.matrix.MatrixConfiguration configuration)
          Returns the entire list of plots managed by this object.
 List<Plot> getPlots(String urlGroup, hudson.matrix.MatrixConfiguration configuration)
          Returns the list of plots with the given group name.
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
          Called by Jenkins.
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 boolean prebuild(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
           
 void setPlots(List<Plot> plots)
          Reset Configuration and set plots settings for matrixConfiguration
 String urlGroupToOriginalGroup(String urlGroup, hudson.matrix.MatrixConfiguration c)
           
 
Methods inherited from class hudson.plugins.plot.AbstractPlotPublisher
getRequiredMonitorService, originalGroupToUrlEncodedGroup, originalGroupToUrlGroup
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

@Extension
public static final MatrixPlotPublisher.DescriptorImpl DESCRIPTOR
Constructor Detail

MatrixPlotPublisher

public MatrixPlotPublisher()
Method Detail

urlGroupToOriginalGroup

public String urlGroupToOriginalGroup(String urlGroup,
                                      hudson.matrix.MatrixConfiguration c)

getOriginalGroups

public List<String> getOriginalGroups(hudson.matrix.MatrixConfiguration configuration)
Returns all group names as the original user specified strings.


setPlots

public void setPlots(List<Plot> plots)
Reset Configuration and set plots settings for matrixConfiguration

Parameters:
plots - the new list of plots

addPlot

public void addPlot(Plot plot)
Adds the new plot to the plot data structures managed by this object.

Parameters:
plot - the new plot

getPlots

public List<Plot> getPlots(hudson.matrix.MatrixConfiguration configuration)
Returns the entire list of plots managed by this object.


getPlots

public List<Plot> getPlots()

getPlots

public List<Plot> getPlots(String urlGroup,
                           hudson.matrix.MatrixConfiguration configuration)
Returns the list of plots with the given group name. The given group must be the URL friendly form of the group name.


getProjectAction

public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
Called by Jenkins.

Specified by:
getProjectAction in interface hudson.tasks.BuildStep
Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer

prebuild

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

perform

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

getDescriptor

public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
Called by Jenkins.

Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.tasks.Recorder


Copyright © 2004-2014. All Rights Reserved.