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
public abstract static class NodeProvisioner.Strategy extends Object implements ExtensionPoint
Extension point for node provisioning strategies.- Since:
- 1.588
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Strategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract NodeProvisioner.StrategyDecision
apply(NodeProvisioner.StrategyState state)
Called byNodeProvisioner.update()
to apply this strategy against the specified state.
-
-
-
Method Detail
-
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.
-
-