hudson.plugins.blazemeter
Class PerformancePublisher

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

public class PerformancePublisher
extends hudson.tasks.Notifier


Nested Class Summary
static class PerformancePublisher.BlazeMeterPerformancePublisherDescriptor
           
static class PerformancePublisher.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 PerformancePublisher.BlazeMeterPerformancePublisherDescriptor DESCRIPTOR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
PerformancePublisher(String apiKey, String testDuration, String mainJMX, String dataFolder, String testId, int errorFailedThreshold, int errorUnstableThreshold, int responseTimeFailedThreshold, int responseTimeUnstableThreshold)
           
 
Method Summary
 String getApiKey()
           
 String getDataFolder()
           
 PerformancePublisher.BlazeMeterPerformancePublisherDescriptor getDescriptor()
           
 int getErrorFailedThreshold()
           
 int getErrorUnstableThreshold()
           
 String getFilename()
           
 String getMainJMX()
           
 List<PerformanceReportParser> getParsers()
           
static File getPerformanceReport(hudson.model.AbstractBuild<?,?> build, String parserDisplayName, String performanceReportName)
           
static String getPerformanceReportBuildFileName(String performanceReportWorkspaceName)
           Delete the date suffix appended to the Performance result files by the Maven Performance plugin
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 int getResponseTimeFailedThreshold()
           
 int getResponseTimeUnstableThreshold()
           
 String getTestDuration()
           
 String getTestId()
           
protected static List<hudson.FilePath> locatePerformanceReports(hudson.FilePath workspace, String includes)
          look for blazemeter reports based in the configured parameter includes.
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 Object readResolve()
           
 void setDataFolder(String dataFolder)
           
 void setErrorFailedThreshold(int errorFailedThreshold)
           
 void setErrorUnstableThreshold(int errorUnstableThreshold)
           
 void setFilename(String filename)
           
 void setMainJMX(String mainJMX)
           
 void setResponseTimeFailedThreshold(int responseTimeFailedThreshold)
           
 void setResponseTimeUnstableThreshold(int responseTimeUnstableThreshold)
           
 void setTestDuration(String testDuration)
           
 void setTestId(String testId)
           
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, 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
getProjectAction, getProjectActions, prebuild
 

Field Detail

DESCRIPTOR

@Extension
public static final PerformancePublisher.BlazeMeterPerformancePublisherDescriptor DESCRIPTOR
Constructor Detail

PerformancePublisher

@DataBoundConstructor
public PerformancePublisher(String apiKey,
                                                 String testDuration,
                                                 String mainJMX,
                                                 String dataFolder,
                                                 String testId,
                                                 int errorFailedThreshold,
                                                 int errorUnstableThreshold,
                                                 int responseTimeFailedThreshold,
                                                 int responseTimeUnstableThreshold)
Method Detail

getPerformanceReport

public static File getPerformanceReport(hudson.model.AbstractBuild<?,?> build,
                                        String parserDisplayName,
                                        String performanceReportName)

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()

getParsers

public List<PerformanceReportParser> getParsers()

getPerformanceReportBuildFileName

public static String getPerformanceReportBuildFileName(String performanceReportWorkspaceName)

Delete the date suffix appended to the Performance result files by the Maven Performance plugin

Parameters:
performanceReportWorkspaceName - self explanatory.
Returns:
the name of the PerformanceReport in the Build

locatePerformanceReports

protected static List<hudson.FilePath> locatePerformanceReports(hudson.FilePath workspace,
                                                                String includes)
                                                         throws IOException,
                                                                InterruptedException
look for blazemeter reports based in the configured parameter includes. 'includes' is - an Ant-style pattern - a list of files and folders separated by the characters ;:,

Throws:
IOException
InterruptedException

perform

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

readResolve

public Object readResolve()

getApiKey

public String getApiKey()

getResponseTimeFailedThreshold

public int getResponseTimeFailedThreshold()

setResponseTimeFailedThreshold

public void setResponseTimeFailedThreshold(int responseTimeFailedThreshold)

getResponseTimeUnstableThreshold

public int getResponseTimeUnstableThreshold()

setResponseTimeUnstableThreshold

public void setResponseTimeUnstableThreshold(int responseTimeUnstableThreshold)

getTestDuration

public String getTestDuration()

setTestDuration

public void setTestDuration(String testDuration)

getMainJMX

public String getMainJMX()

setMainJMX

public void setMainJMX(String mainJMX)

getDataFolder

public String getDataFolder()

setDataFolder

public void setDataFolder(String dataFolder)

getErrorFailedThreshold

public int getErrorFailedThreshold()

setErrorFailedThreshold

public void setErrorFailedThreshold(int errorFailedThreshold)

getErrorUnstableThreshold

public int getErrorUnstableThreshold()

setErrorUnstableThreshold

public void setErrorUnstableThreshold(int errorUnstableThreshold)

getTestId

public String getTestId()

setTestId

public void setTestId(String testId)

getFilename

public String getFilename()

setFilename

public void setFilename(String filename)

getDescriptor

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


Copyright © July 2012-2013 BlazeMeterInc. All Rights Reserved.