public abstract static class NodeProvisioner.Strategy extends Object implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
Strategy() |
Modifier and Type | Method and Description |
---|---|
abstract NodeProvisioner.StrategyDecision |
apply(NodeProvisioner.StrategyState state)
Called by
NodeProvisioner.update() to apply this strategy against the specified state. |
@NonNull public abstract NodeProvisioner.StrategyDecision apply(@NonNull NodeProvisioner.StrategyState state)
NodeProvisioner.update()
to apply this strategy against the specified state.
Any provisioning activities should be recorded by calling
NodeProvisioner.StrategyState.recordPendingLaunches(java.util.Collection)
This method will be called by a thread that is holding NodeProvisioner.provisioningLock
state
- the current state.Copyright © 2004–2021. All rights reserved.