hudson.plugins.blazemeter
Class GraphConfigurationDetail

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

public class GraphConfigurationDetail
extends Object
implements hudson.model.ModelObject

Configures the trend graph of this plug-in.


Field Summary
static String BUILD_CONFIG
           
static String DATE_CONFIG
           
static int DEFAULT_COUNT
           
static String DEFAULT_DATE
           
static String NONE_CONFIG
           
static String SEPARATOR
           
 
Constructor Summary
GraphConfigurationDetail(hudson.model.AbstractProject<?,?> project, String pluginName, org.kohsuke.stapler.StaplerRequest request)
           
 
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.
 int getBuildCount()
           
 String getConfigType()
           
 String getDisplayName()
           
 String getFirstDayCount()
           
static GregorianCalendar getGregorianCalendarFromString(String dateString)
           Get a gregorian calendar from a String of type : DD/MM/YYYY
 String getLastDayCount()
           
protected  void persistValue(String value, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
           
protected  String serializeToString(String configType, int buildCount, String firstDayCount, String lastDayCount)
           
 void setBuildCount(int buildCount)
           
 void setConfigType(String configType)
           
 void setFirstDayCount(String firstDayCount)
           
 void setLastDayCount(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 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 String DEFAULT_DATE
See Also:
Constant Field Values

NONE_CONFIG

public static final String NONE_CONFIG
See Also:
Constant Field Values

BUILD_CONFIG

public static final String BUILD_CONFIG
See Also:
Constant Field Values

DATE_CONFIG

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

GraphConfigurationDetail

public GraphConfigurationDetail(hudson.model.AbstractProject<?,?> project,
                                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 String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject

persistValue

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

serializeToString

protected String serializeToString(String configType,
                                   int buildCount,
                                   String firstDayCount,
                                   String lastDayCount)

createDefaultsFile

protected static File createDefaultsFile(hudson.model.AbstractProject<?,?> project,
                                         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 GregorianCalendar getGregorianCalendarFromString(String dateString)
                                                        throws ParseException

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

Parameters:
dateString -
Returns:
GregorianCalendar
Throws:
ParseException

getBuildCount

public int getBuildCount()

setBuildCount

public void setBuildCount(int buildCount)

getFirstDayCount

public String getFirstDayCount()

setFirstDayCount

public void setFirstDayCount(String firstDayCount)

getLastDayCount

public String getLastDayCount()

setLastDayCount

public void setLastDayCount(String lastDayCount)

getConfigType

public String getConfigType()

setConfigType

public void setConfigType(String configType)


Copyright © July 2012-2013 BlazeMeterInc. All Rights Reserved.