Package hudson.slaves
Class NodeProvisioner.Strategy
java.lang.Object
hudson.slaves.NodeProvisioner.Strategy
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
NodeProvisioner.StandardStrategyImpl
- Enclosing class:
- NodeProvisioner
Extension point for node provisioning strategies.
- Since:
- 1.588
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract NodeProvisioner.StrategyDecision
Called byNodeProvisioner.update()
to apply this strategy against the specified state.
-
Constructor Details
-
Strategy
public Strategy()
-
-
Method Details
-
apply
@NonNull public abstract NodeProvisioner.StrategyDecision apply(@NonNull NodeProvisioner.StrategyState state) Called byNodeProvisioner.update()
to apply this strategy against the specified state. Any provisioning activities should be recorded by callingNodeProvisioner.StrategyState.recordPendingLaunches(java.util.Collection)
This method will be called by a thread that is holdingNodeProvisioner.provisioningLock
- Parameters:
state
- the current state.- Returns:
- the decision.
-