Class MaintenanceConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
com.sap.prd.jenkins.plugins.agent_maintenance.MaintenanceConfiguration
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,Loadable
,OnMaster
@Extension
@Symbol("agent-maintenance")
public class MaintenanceConfiguration
extends GlobalConfiguration
The global configuration of the plugin.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponse
doInject
(org.kohsuke.stapler.StaplerResponse rsp) Called when UI button to inject strategy to all agents is pressed.org.kohsuke.stapler.HttpResponse
doRemove
(org.kohsuke.stapler.StaplerResponse rsp) Called when UI button to remove strategy from all agents is pressed.static MaintenanceConfiguration
boolean
void
setInjectRetentionStrategy
(boolean injectRetentionStrategy) 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
-
Constructor Details
-
MaintenanceConfiguration
@DataBoundConstructor public MaintenanceConfiguration()
-
-
Method Details
-
setInjectRetentionStrategy
public void setInjectRetentionStrategy(boolean injectRetentionStrategy) -
isInjectRetentionStrategy
public boolean isInjectRetentionStrategy() -
getInstance
-
doInject
@POST public org.kohsuke.stapler.HttpResponse doInject(org.kohsuke.stapler.StaplerResponse rsp) Called when UI button to inject strategy to all agents is pressed.- Parameters:
rsp
- Stapler Response- Returns:
- A HttpResponse
-
doRemove
@POST public org.kohsuke.stapler.HttpResponse doRemove(org.kohsuke.stapler.StaplerResponse rsp) Called when UI button to remove strategy from all agents is pressed.- Parameters:
rsp
- Stapler Response- Returns:
- A HttpResponse
-