hudson.plugins.performance
Class GraphConfigurationDetail

java.lang.Object
  extended by hudson.plugins.performance.GraphConfigurationDetail
All Implemented Interfaces:
hudson.model.ModelObject

public class GraphConfigurationDetail
extends java.lang.Object
implements hudson.model.ModelObject

Configures the trend graph of this plug-in.


Field Summary
static java.lang.String BUILD_CONFIG
           
static java.lang.String DATE_CONFIG
           
static int DEFAULT_COUNT
           
static java.lang.String DEFAULT_DATE
           
static java.lang.String NONE_CONFIG
           
static java.lang.String SEPARATOR
           
 
Constructor Summary
GraphConfigurationDetail(hudson.model.AbstractProject<?,?> project, java.lang.String pluginName, org.kohsuke.stapler.StaplerRequest request)
           
 
Method Summary
protected static java.io.File createDefaultsFile(hudson.model.AbstractProject<?,?> project, java.lang.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.
 int getBuildCount()
           
 java.lang.String getConfigType()
           
 java.lang.String getDisplayName()
           
 java.lang.String getFirstDayCount()
           
static java.util.GregorianCalendar getGregorianCalendarFromString(java.lang.String dateString)
           Get a gregorian calendar from a String of type : DD/MM/YYYY
 java.lang.String getLastDayCount()
           
protected  void persistValue(java.lang.String value, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
           
protected  java.lang.String serializeToString(java.lang.String configType, int buildCount, java.lang.String firstDayCount, java.lang.String lastDayCount)
           
 void setBuildCount(int buildCount)
           
 void setConfigType(java.lang.String configType)
           
 void setFirstDayCount(java.lang.String firstDayCount)
           
 void setLastDayCount(java.lang.String lastDayCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values

DEFAULT_COUNT

public static final int DEFAULT_COUNT
See Also:
Constant Field Values

DEFAULT_DATE

public static final java.lang.String DEFAULT_DATE
See Also:
Constant Field Values

NONE_CONFIG

public static final java.lang.String NONE_CONFIG
See Also:
Constant Field Values

BUILD_CONFIG

public static final java.lang.String BUILD_CONFIG
See Also:
Constant Field Values

DATE_CONFIG

public static final java.lang.String DATE_CONFIG
See Also:
Constant Field Values
Constructor Detail

GraphConfigurationDetail

public GraphConfigurationDetail(hudson.model.AbstractProject<?,?> project,
                                java.lang.String pluginName,
                                org.kohsuke.stapler.StaplerRequest request)
Method Detail

doSave

public void doSave(org.kohsuke.stapler.StaplerRequest request,
                   org.kohsuke.stapler.StaplerResponse response)
Saves the configured values. Subclasses need to implement the actual persistence.

Parameters:
request - Stapler request
response - Stapler response

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject

persistValue

protected void persistValue(java.lang.String value,
                            org.kohsuke.stapler.StaplerRequest request,
                            org.kohsuke.stapler.StaplerResponse response)

serializeToString

protected java.lang.String serializeToString(java.lang.String configType,
                                             int buildCount,
                                             java.lang.String firstDayCount,
                                             java.lang.String lastDayCount)

createDefaultsFile

protected static java.io.File createDefaultsFile(hudson.model.AbstractProject<?,?> project,
                                                 java.lang.String pluginName)
Creates a file with for the default values.

Parameters:
project - the project used as directory for the file
pluginName - the name of the plug-in
Returns:
the created file

getGregorianCalendarFromString

public static java.util.GregorianCalendar getGregorianCalendarFromString(java.lang.String dateString)
                                                                  throws java.text.ParseException

Get a gregorian calendar from a String of type : DD/MM/YYYY

Parameters:
dateString -
Returns:
GregorianCalendar
Throws:
java.text.ParseException

getBuildCount

public int getBuildCount()

setBuildCount

public void setBuildCount(int buildCount)

getFirstDayCount

public java.lang.String getFirstDayCount()

setFirstDayCount

public void setFirstDayCount(java.lang.String firstDayCount)

getLastDayCount

public java.lang.String getLastDayCount()

setLastDayCount

public void setLastDayCount(java.lang.String lastDayCount)

getConfigType

public java.lang.String getConfigType()

setConfigType

public void setConfigType(java.lang.String configType)


Copyright © 2010. All Rights Reserved.