Package hudson.plugins.timestamper
Class TimestamperConfig
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- hudson.plugins.timestamper.TimestamperConfig
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension(dynamicLoadable=YES) @Symbol({"timestamper","timestamperConfig"}) public final class TimestamperConfig extends GlobalConfiguration
Global configuration for the Timestamper plug-in, as shown on the Jenkins Configure System page.- Author:
- Frederik Fromm
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description TimestamperConfig()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckElapsedTimeFormat(String elapsedTimeFormat)
FormValidation
doCheckSystemTimeFormat(String systemTimeFormat)
static TimestamperConfig
get()
Get the current Timestamper global configuration.String
getElapsedTimeFormat()
Get the format for displaying the elapsed time.String
getSystemTimeFormat()
Get the format for displaying the system clock time.boolean
isAllPipelines()
void
setAllPipelines(boolean allPipelines)
void
setElapsedTimeFormat(String elapsedTimeFormat)
Set the format for displaying the elapsed time.void
setSystemTimeFormat(String timestampFormat)
Set the format for displaying the system clock time.-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
get
public static TimestamperConfig get()
Get the current Timestamper global configuration.- Returns:
- the Timestamper configuration, or
null
if Jenkins has been shut down
-
getSystemTimeFormat
public String getSystemTimeFormat()
Get the format for displaying the system clock time.- Returns:
- the system clock time format
-
setSystemTimeFormat
public void setSystemTimeFormat(@CheckForNull String timestampFormat)
Set the format for displaying the system clock time.- Parameters:
timestampFormat
- the system clock time format inSimpleDateFormat
pattern
-
doCheckSystemTimeFormat
@POST public FormValidation doCheckSystemTimeFormat(@QueryParameter String systemTimeFormat) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
getElapsedTimeFormat
public String getElapsedTimeFormat()
Get the format for displaying the elapsed time.- Returns:
- the elapsed time format
-
setElapsedTimeFormat
public void setElapsedTimeFormat(@CheckForNull String elapsedTimeFormat)
Set the format for displaying the elapsed time.- Parameters:
elapsedTimeFormat
- the elapsed time format inDurationFormatUtils
pattern
-
doCheckElapsedTimeFormat
@POST public FormValidation doCheckElapsedTimeFormat(@QueryParameter String elapsedTimeFormat) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
isAllPipelines
public boolean isAllPipelines()
-
setAllPipelines
public void setAllPipelines(boolean allPipelines)
-
-