hudson.plugins.plot
Class PlotPublisher

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

public class PlotPublisher
extends hudson.tasks.Publisher

Records the plot data for builds.

Author:
Nigel Daley

Nested Class Summary
static class PlotPublisher.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static hudson.model.Descriptor<hudson.tasks.Publisher> DESCRIPTOR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
PlotPublisher()
           
 
Method Summary
 void addPlot(Plot plot)
          Adds the new plot to the plot data structures managed by this object.
 hudson.model.Descriptor<hudson.tasks.Publisher> getDescriptor()
          Called by Hudson.
 java.lang.String[] getOriginalGroups()
          Returns all group names as the original user specified strings.
 Plot[] getPlots()
          Returns the entire list of plots managed by this object.
 Plot[] getPlots(java.lang.String urlGroup)
          Returns the list of plots with the given group name.
 hudson.model.Action getProjectAction(hudson.model.Project project)
          Called by Hudson.
 java.lang.String originalGroupToUrlGroup(java.lang.String originalGroup)
          Converts the original plot group name to a URL friendly group name.
 boolean perform(hudson.model.Build build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          Called by Hudson when a build is finishing.
 void setPlots(Plot[] plots)
          Replaces the plots managed by this object with the given list.
 java.lang.String urlGroupToOriginalGroup(java.lang.String urlGroup)
          Converts a URL friendly plot group name to the original group name.
 
Methods inherited from class hudson.tasks.Publisher
prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

public static final hudson.model.Descriptor<hudson.tasks.Publisher> DESCRIPTOR
Constructor Detail

PlotPublisher

public PlotPublisher()
Method Detail

urlGroupToOriginalGroup

public java.lang.String urlGroupToOriginalGroup(java.lang.String urlGroup)
Converts a URL friendly plot group name to the original group name. If the given urlGroup doesn't already exist then the empty string will be returned.


originalGroupToUrlGroup

public java.lang.String originalGroupToUrlGroup(java.lang.String originalGroup)
Converts the original plot group name to a URL friendly group name.


getOriginalGroups

public java.lang.String[] getOriginalGroups()
Returns all group names as the original user specified strings.


setPlots

public void setPlots(Plot[] plots)
Replaces the plots managed by this object with the given list.

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 Plot[] getPlots()
Returns the entire list of plots managed by this object.


getPlots

public Plot[] getPlots(java.lang.String urlGroup)
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.Project project)
Called by Hudson.

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

getDescriptor

public hudson.model.Descriptor<hudson.tasks.Publisher> getDescriptor()
Called by Hudson.


perform

public boolean perform(hudson.model.Build build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws java.io.IOException,
                       java.lang.InterruptedException
Called by Hudson when a build is finishing.

Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2007. All Rights Reserved.