net.praqma.jenkins.memorymap
Class MemoryMapBuildAction
java.lang.Object
net.praqma.jenkins.memorymap.MemoryMapBuildAction
- All Implemented Interfaces:
- hudson.model.Action, hudson.model.ModelObject
public class MemoryMapBuildAction
- extends Object
- implements hudson.model.Action
- Author:
- Praqma
|
Method Summary |
protected org.jfree.chart.JFreeChart |
createChart(org.jfree.data.category.CategoryDataset dataset,
String title,
String yaxis,
int max,
int min)
|
protected org.jfree.chart.JFreeChart |
createPairedBarCharts(String title,
String yaxis,
double max,
double min,
org.jfree.data.category.CategoryDataset dataset,
List<org.jfree.chart.plot.ValueMarker> markers)
|
void |
doDrawMemoryMapUsageGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
String |
getDisplayName()
|
String |
getIconFileName()
|
MemoryMapConfigMemory |
getMemoryMapConfig()
|
MemoryMapBuildAction |
getPreviousAction()
|
MemoryMapBuildAction |
getPreviousAction(hudson.model.AbstractBuild<?,?> base)
Fetches the previous MemoryMap build. |
MemoryMapRecorder |
getRecorder()
|
String |
getUrlName()
|
boolean |
isValidConfigurationWithData()
|
void |
setMemoryMapConfig(MemoryMapConfigMemory memoryMapConfig)
|
void |
setRecorder(MemoryMapRecorder recorder)
|
int |
sumOfValues(List<String> values)
|
int |
sumOfValues(String... valuenames)
|
boolean |
validateThreshold(int threshold,
List<String> valuenames)
|
boolean |
validateThreshold(int threshold,
String... valuenames)
Returns an indication wheather as to the requirements are met. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryMapBuildAction
public MemoryMapBuildAction(hudson.model.AbstractBuild<?,?> build,
MemoryMapConfigMemory memoryMapConfig)
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName in interface hudson.model.Action
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface hudson.model.Action- Specified by:
getDisplayName in interface hudson.model.ModelObject
getUrlName
public String getUrlName()
- Specified by:
getUrlName in interface hudson.model.Action
validateThreshold
public boolean validateThreshold(int threshold,
String... valuenames)
- Returns an indication wheather as to the requirements are met. You do one check per set of values you wish to compare.
- Parameters:
threshold - valuenames -
- Returns:
validateThreshold
public boolean validateThreshold(int threshold,
List<String> valuenames)
sumOfValues
public int sumOfValues(String... valuenames)
sumOfValues
public int sumOfValues(List<String> values)
getPreviousAction
public MemoryMapBuildAction getPreviousAction(hudson.model.AbstractBuild<?,?> base)
- Fetches the previous MemoryMap build. Takes all succesful, but failed builds.
Goes to the end of list.
getPreviousAction
public MemoryMapBuildAction getPreviousAction()
doDrawMemoryMapUsageGraph
public void doDrawMemoryMapUsageGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
- Throws:
IOException
createPairedBarCharts
protected org.jfree.chart.JFreeChart createPairedBarCharts(String title,
String yaxis,
double max,
double min,
org.jfree.data.category.CategoryDataset dataset,
List<org.jfree.chart.plot.ValueMarker> markers)
createChart
protected org.jfree.chart.JFreeChart createChart(org.jfree.data.category.CategoryDataset dataset,
String title,
String yaxis,
int max,
int min)
getRecorder
public MemoryMapRecorder getRecorder()
- Returns:
- the recorder
setRecorder
public void setRecorder(MemoryMapRecorder recorder)
- Parameters:
recorder - the recorder to set
getMemoryMapConfig
public MemoryMapConfigMemory getMemoryMapConfig()
- Returns:
- the memoryMapConfig
setMemoryMapConfig
public void setMemoryMapConfig(MemoryMapConfigMemory memoryMapConfig)
- Parameters:
memoryMapConfig - the memoryMapConfig to set
isValidConfigurationWithData
public boolean isValidConfigurationWithData()
Copyright © 2004-2013. All Rights Reserved.