public class MemoryMapBuildAction extends Object implements jenkins.tasks.SimpleBuildStep.LastBuildAction
Constructor and Description |
---|
MemoryMapBuildAction(hudson.model.Run<?,?> build,
HashMap<String,MemoryMapConfigMemory> memoryMapConfig) |
Modifier and Type | Method and Description |
---|---|
double |
buildDataSet(List<String> graphData,
String dataSet,
hudson.util.DataSetBuilder<String,hudson.util.ChartUtil.NumberOnlyBuildLabel> graphDataSet,
HashMap<String,org.jfree.chart.plot.ValueMarker> markers)
Builds the data set.
|
protected org.jfree.chart.JFreeChart |
createPairedBarCharts(String title,
String yAxis,
double max,
double min,
org.jfree.data.category.CategoryDataset dataSet,
Collection<org.jfree.chart.plot.ValueMarker> markers) |
void |
doDrawMemoryMapUsageGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
List<AbstractMemoryMapParser> |
getChosenParsers() |
String |
getDisplayName() |
String |
getIconFileName() |
HashMap<String,MemoryMapConfigMemory> |
getMemoryMapConfigs() |
MemoryMapBuildAction |
getPreviousAction() |
MemoryMapBuildAction |
getPreviousAction(hudson.model.Run<?,?> base)
Fetches the previous MemoryMap build.
|
Collection<? extends hudson.model.Action> |
getProjectActions() |
MemoryMapRecorder |
getRecorder() |
String |
getUrlName() |
boolean |
isValidConfigurationWithData() |
void |
makeMarker(String labelName,
double value,
HashMap<String,org.jfree.chart.plot.ValueMarker> markers) |
void |
setChosenParsers(List<AbstractMemoryMapParser> parsers) |
void |
setMemoryMapConfigs(HashMap<String,MemoryMapConfigMemory> memoryMapConfigs) |
void |
setRecorder(MemoryMapRecorder recorder) |
public MemoryMapBuildAction(hudson.model.Run<?,?> build, HashMap<String,MemoryMapConfigMemory> memoryMapConfig)
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public MemoryMapBuildAction getPreviousAction(hudson.model.Run<?,?> base)
base
- the Run to use as basepublic MemoryMapBuildAction getPreviousAction()
public void doDrawMemoryMapUsageGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
protected org.jfree.chart.JFreeChart createPairedBarCharts(String title, String yAxis, double max, double min, org.jfree.data.category.CategoryDataset dataSet, Collection<org.jfree.chart.plot.ValueMarker> markers)
public MemoryMapRecorder getRecorder()
public void setRecorder(MemoryMapRecorder recorder)
recorder
- the recorder to setpublic List<AbstractMemoryMapParser> getChosenParsers()
public void setChosenParsers(List<AbstractMemoryMapParser> parsers)
parsers
- the parsers to setpublic HashMap<String,MemoryMapConfigMemory> getMemoryMapConfigs()
public void setMemoryMapConfigs(HashMap<String,MemoryMapConfigMemory> memoryMapConfigs)
memoryMapConfigs
- the memoryMapConfigs to setpublic boolean isValidConfigurationWithData()
public void makeMarker(String labelName, double value, HashMap<String,org.jfree.chart.plot.ValueMarker> markers)
public double buildDataSet(List<String> graphData, String dataSet, hudson.util.DataSetBuilder<String,hudson.util.ChartUtil.NumberOnlyBuildLabel> graphDataSet, HashMap<String,org.jfree.chart.plot.ValueMarker> markers)
graphData
- GraphDatadataSet
- the data setgraphDataSet
- the graph data setmarkers
- markers to add (max values)public Collection<? extends hudson.model.Action> getProjectActions()
getProjectActions
in interface jenkins.tasks.SimpleBuildStep.LastBuildAction
Copyright © 2016–2018. All rights reserved.