@Extension
public class PeriodicReincarnationGlobalConfiguration
extends jenkins.model.GlobalConfiguration
| Constructor and Description |
|---|
PeriodicReincarnationGlobalConfiguration()
Constructor.
|
PeriodicReincarnationGlobalConfiguration(String activeTrigger,
String maxDepth,
String activeCron,
String cronTime,
List<RegEx> regExprs,
String noChange)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
This method defines what happens when we save to
configuration.
|
hudson.util.FormValidation |
doCheckCronTime(String value)
Check method for the cron time.
|
hudson.util.FormValidation |
doCheckRegExCronTime(String value)
Checks if a cron tab for a regEx can be compiled.
|
hudson.util.FormValidation |
doCheckRegExValue(String value)
Checks if a regular expression entered be compiled.
|
static PeriodicReincarnationGlobalConfiguration |
get()
Finds and returns the configuration class.
|
String |
getActiveCron()
Returns the field activeCron.
|
String |
getActiveTrigger()
Returns the field activeTrigger.
|
String |
getCronTime()
Returns the field cron time.
|
int |
getMaxDepth()
returns the maximal number of consecutive afterbuild retries.
|
String |
getNoChange()
Returns the field noChange.
|
List<RegEx> |
getRegExprs()
Returns a list containing all regular expressions.
|
boolean |
isCronActive()
Tells if the cron restart is activated or not.
|
boolean |
isRestartUnchangedJobsEnabled()
See
noChange. |
boolean |
isTriggerActive()
Tells if the afterbuild restart is activated or not.
|
all, getCategory, getDescriptor, getDisplayName, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic PeriodicReincarnationGlobalConfiguration()
@DataBoundConstructor public PeriodicReincarnationGlobalConfiguration(String activeTrigger, String maxDepth, String activeCron, String cronTime, List<RegEx> regExprs, String noChange)
activeTrigger - shows if plugin trigger restart is enabled.activeCron - shows if plugin cron restart is enabled.cronTime - contains the cron time.regExprs - list of all regular expressions.maxDepth - max restart depth.noChange - shows if no change option is enabled or disabled.public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>hudson.model.Descriptor.FormExceptionpublic hudson.util.FormValidation doCheckCronTime(@QueryParameter
String value)
throws antlr.ANTLRException,
NullPointerException
antlr.ANTLRExceptionNullPointerException - cronTime was null.public hudson.util.FormValidation doCheckRegExValue(@QueryParameter
String value)
value - the value of the reg ex to be checked.public hudson.util.FormValidation doCheckRegExCronTime(@QueryParameter
String value)
throws NullPointerException,
antlr.ANTLRException
value - the value of the cron time to be checked.antlr.ANTLRExceptionNullPointerExceptionpublic static PeriodicReincarnationGlobalConfiguration get()
public String getNoChange()
public boolean isRestartUnchangedJobsEnabled()
noChange.public List<RegEx> getRegExprs()
public String getCronTime()
public String getActiveCron()
public boolean isCronActive()
public String getActiveTrigger()
public boolean isTriggerActive()
public int getMaxDepth()
Copyright © 2004–2014. All rights reserved.