Package hudson.slaves
Class NodeProvisioner.StandardStrategyImpl
java.lang.Object
hudson.slaves.NodeProvisioner.Strategy
hudson.slaves.NodeProvisioner.StandardStrategyImpl
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- NodeProvisioner
@Extension
@Symbol("standard")
public static class NodeProvisioner.StandardStrategyImpl
extends NodeProvisioner.Strategy
The default strategy.
- Since:
- 1.588
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalled byNodeProvisioner.update()
to apply this strategy against the specified state.
-
Constructor Details
-
StandardStrategyImpl
public StandardStrategyImpl()
-
-
Method Details
-
apply
@NonNull public NodeProvisioner.StrategyDecision apply(@NonNull NodeProvisioner.StrategyState state) Description copied from class:NodeProvisioner.Strategy
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
- Specified by:
apply
in classNodeProvisioner.Strategy
- Parameters:
state
- the current state.- Returns:
- the decision.
-