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
Constructors Constructor Description StandardStrategyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeProvisioner.StrategyDecision
apply(NodeProvisioner.StrategyState state)
Called byNodeProvisioner.update()
to apply this strategy against the specified state.
-
-
-
Method Detail
-
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.
-
-