Package hudson.slaves
Enum NodeProvisioner.StrategyDecision
- java.lang.Object
-
- java.lang.Enum<NodeProvisioner.StrategyDecision>
-
- hudson.slaves.NodeProvisioner.StrategyDecision
-
- All Implemented Interfaces:
Serializable
,Comparable<NodeProvisioner.StrategyDecision>
- Enclosing class:
- NodeProvisioner
public static enum NodeProvisioner.StrategyDecision extends Enum<NodeProvisioner.StrategyDecision>
Represents the decision taken by an individualNodeProvisioner.Strategy
.- Since:
- 1.588
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSULT_REMAINING_STRATEGIES
This decision is the default decision and indicates that theNodeProvisioner.Strategy
either could not provision sufficient resources or did not take any action.PROVISIONING_COMPLETED
This decision indicates that theNodeProvisioner.Strategy
has taken sufficient action so as to ensure that the required resources are available, and therefore there is no requirement to consult the remaining strategies.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodeProvisioner.StrategyDecision
valueOf(String name)
Returns the enum constant of this type with the specified name.static NodeProvisioner.StrategyDecision[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSULT_REMAINING_STRATEGIES
public static final NodeProvisioner.StrategyDecision CONSULT_REMAINING_STRATEGIES
This decision is the default decision and indicates that theNodeProvisioner.Strategy
either could not provision sufficient resources or did not take any action. Any remaining strategies will be able to contribute to the ultimate decision.
-
PROVISIONING_COMPLETED
public static final NodeProvisioner.StrategyDecision PROVISIONING_COMPLETED
This decision indicates that theNodeProvisioner.Strategy
has taken sufficient action so as to ensure that the required resources are available, and therefore there is no requirement to consult the remaining strategies. Only return this decision when you are certain that there is no need for additional provisioning actions (i.e. you detected an excess workload and have provisioned enough for that excess workload).
-
-
Method Detail
-
values
public static NodeProvisioner.StrategyDecision[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NodeProvisioner.StrategyDecision c : NodeProvisioner.StrategyDecision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeProvisioner.StrategyDecision valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-