nl.codecentric.jenkins.appd
Class AppDynamicsResultsPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by nl.codecentric.jenkins.appd.AppDynamicsResultsPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class AppDynamicsResultsPublisher
extends hudson.tasks.Recorder

Main class for this Jenkins Plugin.
Hooks into the build flow as post-build step, then collecting data and generating the report.

Configuration is set from the Jenkins Build Configuration menu. When a build is triggered, the perform(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.BuildListener) method is called. This will then trigger the AppDynamicsDataCollector and parse any results and produces AppDynamicsReport's.
A AppDynamicsBuildAction is used to store data per-build, so it can be compared later.


Nested Class Summary
static class AppDynamicsResultsPublisher.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 AppDynamicsResultsPublisher.DescriptorImpl DESCRIPTOR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
AppDynamicsResultsPublisher(String appdynamicsRestUri, String username, String password, String applicationName, String thresholdMetric, Boolean lowerIsBetter, Integer minimumMeasureTimeInMinutes, Integer performanceFailedThreshold, Integer performanceUnstableThreshold)
           
 
Method Summary
 String getAppdynamicsRestUri()
           
 String getApplicationName()
           
 hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
           
 Boolean getLowerIsBetter()
           
 Integer getMinimumMeasureTimeInMinutes()
           
 String getPassword()
           
 Integer getPerformanceFailedThreshold()
           
 Integer getPerformanceUnstableThreshold()
           
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 String getThresholdMetric()
           
 String getUsername()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 void setAppdynamicsRestUri(String appdynamicsRestUri)
           
 void setApplicationName(String applicationName)
           
 void setLowerIsBetter(Boolean lowerIsBetter)
           
 void setMinimumMeasureTimeInMinutes(Integer minimumMeasureTimeInMinutes)
           
 void setPassword(String password)
           
 void setPerformanceFailedThreshold(Integer performanceFailedThreshold)
           
 void setPerformanceUnstableThreshold(Integer performanceUnstableThreshold)
           
 void setThresholdMetric(String thresholdMetric)
           
 void setUsername(String username)
           
 
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

@Extension
public static final AppDynamicsResultsPublisher.DescriptorImpl DESCRIPTOR
Constructor Detail

AppDynamicsResultsPublisher

@DataBoundConstructor
public AppDynamicsResultsPublisher(String appdynamicsRestUri,
                                                        String username,
                                                        String password,
                                                        String applicationName,
                                                        String thresholdMetric,
                                                        Boolean lowerIsBetter,
                                                        Integer minimumMeasureTimeInMinutes,
                                                        Integer performanceFailedThreshold,
                                                        Integer performanceUnstableThreshold)
Method Detail

getDescriptor

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

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()

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

getAppdynamicsRestUri

public String getAppdynamicsRestUri()

setAppdynamicsRestUri

public void setAppdynamicsRestUri(String appdynamicsRestUri)

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getApplicationName

public String getApplicationName()

setApplicationName

public void setApplicationName(String applicationName)

getThresholdMetric

public String getThresholdMetric()

setThresholdMetric

public void setThresholdMetric(String thresholdMetric)

getLowerIsBetter

public Boolean getLowerIsBetter()

setLowerIsBetter

public void setLowerIsBetter(Boolean lowerIsBetter)

getMinimumMeasureTimeInMinutes

public Integer getMinimumMeasureTimeInMinutes()

setMinimumMeasureTimeInMinutes

public void setMinimumMeasureTimeInMinutes(Integer minimumMeasureTimeInMinutes)

getPerformanceFailedThreshold

public Integer getPerformanceFailedThreshold()

setPerformanceFailedThreshold

public void setPerformanceFailedThreshold(Integer performanceFailedThreshold)

getPerformanceUnstableThreshold

public Integer getPerformanceUnstableThreshold()

setPerformanceUnstableThreshold

public void setPerformanceUnstableThreshold(Integer performanceUnstableThreshold)


Copyright © 2004-2013. All Rights Reserved.