|
|||||||||
| 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.ReincarnateFailedJobsConfiguration
@Extension public class ReincarnateFailedJobsConfiguration
Implements the interface GlobalConfiguration from Jenkins. Gives the option to configure how this plugin works, what should be restarted, when it should be restarted and what should appear in the log file. With the help of the load() and save() method the configuration is loaded when instancing this class and saved when changing it.
| Nested Class Summary | |
|---|---|
static class |
ReincarnateFailedJobsConfiguration.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 | |
|---|---|
ReincarnateFailedJobsConfiguration()
Constructor. |
|
ReincarnateFailedJobsConfiguration(String active,
String cronTime,
List<ReincarnateFailedJobsConfiguration.RegEx> regExprs,
String logInfo,
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. |
static ReincarnateFailedJobsConfiguration |
get()
Finds and returns the configuration class. |
String |
getActive()
Returns the field active. |
String |
getCronTime()
Returns the field cron time. |
String |
getLogInfo()
Returns the field logInfo. |
String |
getNoChange()
Returns the field noChange. |
List<ReincarnateFailedJobsConfiguration.RegEx> |
getRegExprs()
Returns a list containing all regular expressions. |
boolean |
isActive()
Tells if the plugin is activated or not. |
boolean |
isLogInfoEnabled()
Tells if printing in log is enabled or not. |
boolean |
isRestartUnchangedJobsEnabled()
See noChange. |
| 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 ReincarnateFailedJobsConfiguration()
@DataBoundConstructor
public ReincarnateFailedJobsConfiguration(String active,
String cronTime,
List<ReincarnateFailedJobsConfiguration.RegEx> regExprs,
String logInfo,
String noChange)
active - shows if plugin is enabled disabled.cronTime - contains the cron time.regExprs - list of all regular expressions.logInfo - shows if log info is enablednoChange - 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.FormExceptionpublic hudson.util.FormValidation doCheckCronTime()
public static ReincarnateFailedJobsConfiguration get()
public String getNoChange()
public boolean isRestartUnchangedJobsEnabled()
noChange.
public String getLogInfo()
public boolean isLogInfoEnabled()
public List<ReincarnateFailedJobsConfiguration.RegEx> getRegExprs()
public String getCronTime()
public String getActive()
public boolean isActive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||