|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.graph.GraphConfigurationView
public abstract class GraphConfigurationView
Configuration properties of a trend graph.
| Constructor Summary | |
|---|---|
GraphConfigurationView(GraphConfiguration configuration,
hudson.model.AbstractProject<?,?> project,
String key,
BuildHistory buildHistory)
Creates a new instance of GraphConfigurationView. |
|
| Method Summary | |
|---|---|
protected static File |
createDefaultsFile(hudson.model.AbstractProject<?,?> project,
String pluginName)
Creates a file with for the default values. |
void |
doSave(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Saves the configured values. |
List<? extends BuildResultGraph> |
getAvailableGraphs()
Returns the list of available graphs. |
int |
getBuildCount()
Returns the number of builds to consider. |
String |
getBuildCountString()
Returns the number of builds to consider. |
int |
getDayCount()
Returns the number of days to consider. |
String |
getDayCountString()
Returns the number of days to consider. |
abstract String |
getDescription()
Returns the description for this view. |
Object |
getDynamic(String graphId,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
This method will be called by Stapler if an example image for the specified graph should be rendered. |
hudson.util.Graph |
getGraphRenderer()
Returns the graph renderer of the current graph. |
hudson.util.Graph |
getGraphRenderer(BuildResultGraph graph,
String url)
Returns the graph renderer of the specified graph. |
hudson.util.Graph |
getGraphRenderer(String url)
Returns the graph renderer of the current graph. |
BuildResultGraph |
getGraphType()
Returns the type of the graph. |
AbstractHealthDescriptor |
getHealthDescriptor()
Returns the current health descriptor. |
int |
getHeight()
Returns the height. |
String |
getKey()
Returns the key of this graph. |
hudson.model.AbstractProject<?,?> |
getOwner()
Returns the project. |
long |
getTimestamp()
Returns the time stamp of the associated build. |
boolean |
getUseBuildDateAsDomain()
Returns whether the build date or the build number should be used as domain. |
int |
getWidth()
Returns the width. |
boolean |
hasMeaningfulGraph()
Checks whether a meaningful graph is available. |
boolean |
isDeactivated()
Returns whether the trend graph completely is deactivated. |
boolean |
isHealthGraphAvailable()
Checks if the health graph is available. |
boolean |
isVisible()
Returns whether the trend graph is visible or not. |
protected abstract void |
persistValue(String value,
String pluginName,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Persists the configured values. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface hudson.model.ModelObject |
|---|
getDisplayName |
| Constructor Detail |
|---|
public GraphConfigurationView(GraphConfiguration configuration,
hudson.model.AbstractProject<?,?> project,
String key,
BuildHistory buildHistory)
GraphConfigurationView.
configuration - the graph configurationproject - the owning project to configure the graphs forkey - unique key of this graphbuildHistory - the build history for this project| Method Detail |
|---|
protected static File createDefaultsFile(hudson.model.AbstractProject<?,?> project,
String pluginName)
project - the project used as directory for the filepluginName - the name of the plug-in
public List<? extends BuildResultGraph> getAvailableGraphs()
public hudson.model.AbstractProject<?,?> getOwner()
public String getKey()
public abstract String getDescription()
public void doSave(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
request - Stapler requestresponse - Stapler responsepublic boolean hasMeaningfulGraph()
true, if there is such a graph
protected abstract void persistValue(String value,
String pluginName,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws IOException
value - the values configured by the user.pluginName - the name of the plug-inrequest - Stapler requestresponse - Stapler response
IOException - if the values could not be persisted
public Object getDynamic(String graphId,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
graphId - the ID of the graph to renderrequest - Stapler requestresponse - Stapler response
null
public hudson.util.Graph getGraphRenderer(BuildResultGraph graph,
String url)
graph - the graphurl - the URL of links in the trend graph
public hudson.util.Graph getGraphRenderer()
public hudson.util.Graph getGraphRenderer(String url)
url - the URL of links in the trend graph
public boolean isHealthGraphAvailable()
true, if the health graph is availablepublic int getHeight()
public int getWidth()
public boolean getUseBuildDateAsDomain()
public long getTimestamp()
public int getBuildCount()
public String getBuildCountString()
public int getDayCount()
public String getDayCountString()
public BuildResultGraph getGraphType()
public boolean isVisible()
true, if the trend graph is visible, false otherwisepublic boolean isDeactivated()
true, if the trend graph is deactivated, false otherwisepublic String toString()
toString in class Objectpublic AbstractHealthDescriptor getHealthDescriptor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||