nl.codecentric.jenkins.appd
Class AppDynamicsResultsPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
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 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 |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
| 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 |
DESCRIPTOR
@Extension
public static final AppDynamicsResultsPublisher.DescriptorImpl DESCRIPTOR
AppDynamicsResultsPublisher
@DataBoundConstructor
public AppDynamicsResultsPublisher(String appdynamicsRestUri,
String username,
String password,
String applicationName,
String thresholdMetric,
Boolean lowerIsBetter,
Integer minimumMeasureTimeInMinutes,
Integer performanceFailedThreshold,
Integer performanceUnstableThreshold)
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.