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 File
createDefaultsFile
(Job<?, ?> 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
int
static GregorianCalendar
getGregorianCalendarFromString
(String dateString) Get a gregorian calendar from a String of type : DD/MM/YYYYboolean
boolean
boolean
isDate()
boolean
boolean
isNone()
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, int buildStep) void
setBuildCount
(int buildCount) void
setBuildStep
(int buildStep) void
setConfigType
(String configType) void
setFirstDayCount
(String firstDayCount) void
setLastDayCount
(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:
getDisplayName
in 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
-