|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.Descriptor<jenkins.model.GlobalConfiguration>
jenkins.model.GlobalConfiguration
org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnationGlobalConfiguration
@Extension public class PeriodicReincarnationGlobalConfiguration
Implements the interface GlobalConfiguration from Jenkins. Gives the option to configure how this plugin works, what should be restarted and when it should be restarted.. With the help of the load() and save() method the configuration is loaded when instancing this class and saved when changing it. This class has a corresponding jelly file that represents a section in the global configuration.
| Nested Class Summary | |
|---|---|
static class |
PeriodicReincarnationGlobalConfiguration.RegEx
Class for handling regular expressions. |
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
PeriodicReincarnationGlobalConfiguration()
Constructor. |
|
PeriodicReincarnationGlobalConfiguration(String activeTrigger,
String maxDepth,
String activeCron,
String cronTime,
List<PeriodicReincarnationGlobalConfiguration.RegEx> regExprs,
String noChange)
Constructor. |
|
| Method Summary | |
|---|---|
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()
Check method for the cron time. |
hudson.util.FormValidation |
doCheckRegExprs()
Checks if all regular expressions entered can be compiler. |
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<PeriodicReincarnationGlobalConfiguration.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. |
| Methods inherited from class jenkins.model.GlobalConfiguration |
|---|
all, getDescriptor, getDisplayName, getGlobalConfigPage |
| Methods inherited from class hudson.model.Descriptor |
|---|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PeriodicReincarnationGlobalConfiguration()
@DataBoundConstructor
public PeriodicReincarnationGlobalConfiguration(String activeTrigger,
String maxDepth,
String activeCron,
String cronTime,
List<PeriodicReincarnationGlobalConfiguration.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.| Method Detail |
|---|
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.FormException
public hudson.util.FormValidation doCheckCronTime()
throws antlr.ANTLRException,
NullPointerException
antlr.ANTLRException
NullPointerException - cronTime was null.public hudson.util.FormValidation doCheckRegExprs()
public static PeriodicReincarnationGlobalConfiguration get()
public String getNoChange()
public boolean isRestartUnchangedJobsEnabled()
noChange.
public List<PeriodicReincarnationGlobalConfiguration.RegEx> getRegExprs()
public String getCronTime()
public String getActiveCron()
public boolean isCronActive()
public String getActiveTrigger()
public boolean isTriggerActive()
public int getMaxDepth()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||