hudson.plugins.PerfPublisher
Class PerfPublisherPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.plugins.PerfPublisher.HealthPublisher
              extended by hudson.plugins.PerfPublisher.PerfPublisherPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.matrix.MatrixAggregatable, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class PerfPublisherPublisher
extends HealthPublisher
implements hudson.matrix.MatrixAggregatable

The publisher creates the results we want from the PerfPublisher execution.

Author:
Georges Bossert

Nested Class Summary
static class PerfPublisherPublisher.PerfPublisherDescriptor
          Descriptor for the PerfPublisher plugin Must extends BuildStepDescriptor since issue HUDSON-5612
 
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 hudson.model.Descriptor<hudson.tasks.Publisher> DESCRIPTOR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
PerfPublisherPublisher(java.lang.String name, java.lang.String threshold, java.lang.String healthy, java.lang.String unhealthy, java.lang.String metrics)
           
 
Method Summary
 hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild matrixBuild, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 void doValidateMetricsConfiguration(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 hudson.model.Descriptor<hudson.tasks.Publisher> getDescriptor()
           
 java.lang.String getHealthy()
           
 java.lang.String getMetrics()
          Return the metrics
 java.lang.String getName()
           
 hudson.model.Action getProjectAction(hudson.model.AbstractProject project)
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 java.lang.String getThreshold()
           
 java.lang.String getUnhealthy()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
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

DESCRIPTOR

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

PerfPublisherPublisher

@DataBoundConstructor
public PerfPublisherPublisher(java.lang.String name,
                                                   java.lang.String threshold,
                                                   java.lang.String healthy,
                                                   java.lang.String unhealthy,
                                                   java.lang.String metrics)
Method Detail

getMetrics

public java.lang.String getMetrics()
Return the metrics

Returns:

getHealthy

public java.lang.String getHealthy()
Returns:
the healthy

getUnhealthy

public java.lang.String getUnhealthy()
Returns:
the unhealthy

getThreshold

public java.lang.String getThreshold()

getName

public java.lang.String getName()

doValidateMetricsConfiguration

public void doValidateMetricsConfiguration(org.kohsuke.stapler.StaplerRequest req,
                                           org.kohsuke.stapler.StaplerResponse rsp)
                                    throws java.io.IOException,
                                           javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

getDescriptor

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

createAggregator

public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild matrixBuild,
                                                       hudson.Launcher launcher,
                                                       hudson.model.BuildListener listener)
Specified by:
createAggregator in interface hudson.matrix.MatrixAggregatable

perform

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

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

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Specified by:
getRequiredMonitorService in interface hudson.tasks.BuildStep


Copyright © 2010. All Rights Reserved.