Class GraphConfigurationDetail
java.lang.Object
hudson.plugins.performance.details.GraphConfigurationDetail
- All Implemented Interfaces:
ModelObject
Configures the trend graph of this plug-in.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGraphConfigurationDetail(Job<?, ?> project, String pluginName, org.kohsuke.stapler.StaplerRequest request) -
Method Summary
Modifier and TypeMethodDescriptionprotected static FilecreateDefaultsFile(Job<?, ?> project, String pluginName) Creates a file with for the default values.voiddoSave(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Saves the configured values.intintstatic GregorianCalendargetGregorianCalendarFromString(String dateString) Get a gregorian calendar from a String of type : DD/MM/YYYYbooleanbooleanbooleanisDate()booleanbooleanisNone()protected voidpersistValue(String value, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) protected StringserializeToString(String configType, int buildCount, String firstDayCount, String lastDayCount, int buildStep) voidsetBuildCount(int buildCount) voidsetBuildStep(int buildStep) voidsetConfigType(String configType) voidsetFirstDayCount(String firstDayCount) voidsetLastDayCount(String lastDayCount)
-
Field Details
-
LEGACY_SEPARATOR
- See Also:
-
SEPARATOR
- See Also:
-
DEFAULT_COUNT
public static final int DEFAULT_COUNT- See Also:
-
DEFAULT_STEP
public static final int DEFAULT_STEP- See Also:
-
DEFAULT_DATE
- See Also:
-
NONE_CONFIG
- See Also:
-
BUILD_CONFIG
- See Also:
-
DATE_CONFIG
- See Also:
-
BUILDNTH_CONFIG
- See Also:
-
-
Constructor Details
-
GraphConfigurationDetail
-
-
Method Details
-
isNone
public boolean isNone() -
isBuildCount
public boolean isBuildCount() -
isBuildNth
public boolean isBuildNth() -
isDate
public boolean isDate() -
isDefaultDates
public boolean isDefaultDates() -
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 requestresponse- Stapler response
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
persistValue
protected void persistValue(String value, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) -
serializeToString
-
createDefaultsFile
Creates a file with for the default values.- Parameters:
project- the project used as directory for the filepluginName- 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) -
getBuildStep
public int getBuildStep() -
setBuildStep
public void setBuildStep(int buildStep) -
getFirstDayCount
-
setFirstDayCount
-
getLastDayCount
-
setLastDayCount
-
getConfigType
-
setConfigType
-