Class GlobalTimeOutConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
hudson.plugins.build_timeout.global.GlobalTimeOutConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,TimeOutProvider,Loadable,OnMaster
@Extension
public class GlobalTimeOutConfiguration
extends GlobalConfiguration
implements TimeOutProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) Unchecking the 'Enable Global Timeout' box sends a null object for timeout.global in the json representation of the form submission.booleanbooleanvoidload()voidsetJenkins(Jenkins jenkins) voidsetOperations(List<BuildTimeOutOperation> operations) voidsetOverwriteable(boolean overwriteable) voidsetStrategy(BuildTimeOutStrategy strategy) timeOutFor(AbstractBuild<?, ?> build, BuildListener listener) Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
GlobalTimeOutConfiguration
public GlobalTimeOutConfiguration()
-
-
Method Details
-
setJenkins
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) Unchecking the 'Enable Global Timeout' box sends a null object for timeout.global in the json representation of the form submission. Binding this to the current class leaves the previous values. To get around this binding problem, we explicitly null out these fields before saving.- Overrides:
configurein classGlobalConfiguration- Parameters:
req- the request objectjson- form data as json- Returns:
- always true
-
load
public void load()- Specified by:
loadin interfaceLoadable- Overrides:
loadin classDescriptor<GlobalConfiguration>
-
timeOutFor
- Specified by:
timeOutForin interfaceTimeOutProvider
-
isEnabled
public boolean isEnabled() -
getOverwriteable
public boolean getOverwriteable() -
setOverwriteable
public void setOverwriteable(boolean overwriteable) -
getOperations
- Specified by:
getOperationsin interfaceTimeOutProvider
-
setOperations
-
getStrategy
-
setStrategy
-
getAllStrategies
-
getAllOperations
-