Class AgentMaintenanceRetentionStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<RetentionStrategy<?>>
hudson.slaves.RetentionStrategy<SlaveComputer>
com.sap.prd.jenkins.plugins.agent_maintenance.AgentMaintenanceRetentionStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<RetentionStrategy<?>>
RetentionStrategy
that allows to take an agent offline for a defined time window for maintenance.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Descriptor for UI only.Nested classes/interfaces inherited from class hudson.slaves.RetentionStrategy
RetentionStrategy.Always, RetentionStrategy.Demand
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.slaves.RetentionStrategy
INSTANCE, LIST, NOOP
-
Constructor Summary
ConstructorDescriptionAgentMaintenanceRetentionStrategy
(RetentionStrategy<SlaveComputer> regularRetentionStrategy) -
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
boolean
void
setRegularRetentionStrategy
(RetentionStrategy<SlaveComputer> regularRetentionStrategy) Methods inherited from class hudson.slaves.RetentionStrategy
all, start
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
AgentMaintenanceRetentionStrategy
@DataBoundConstructor public AgentMaintenanceRetentionStrategy(RetentionStrategy<SlaveComputer> regularRetentionStrategy)
-
-
Method Details
-
getRegularRetentionStrategy
-
setRegularRetentionStrategy
-
isAcceptingTasks
- Overrides:
isAcceptingTasks
in classRetentionStrategy<SlaveComputer>
-
isManualLaunchAllowed
- Overrides:
isManualLaunchAllowed
in classRetentionStrategy<SlaveComputer>
-
check
- Specified by:
check
in classRetentionStrategy<SlaveComputer>
-