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
,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
Constructors Constructor Description MaintenanceConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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
getInstance()
boolean
isInjectRetentionStrategy()
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
-
-
-
-
Method Detail
-
setInjectRetentionStrategy
public void setInjectRetentionStrategy(boolean injectRetentionStrategy)
-
isInjectRetentionStrategy
public boolean isInjectRetentionStrategy()
-
getInstance
public static MaintenanceConfiguration 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
-
-