Package org.jenkinsci.plugins.vsphere
Enum Class AgentUsageRegistry.Outcome
- All Implemented Interfaces:
Serializable,Comparable<AgentUsageRegistry.Outcome>,Constable
- Enclosing class:
AgentUsageRegistry
What happened when a run asked to be counted.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe run is counted already, on this or on another agent.The run is counted now.The run is over already; counting it would never be undone.The agent is at its limit, the run is not counted.The agent has no limit, so nothing is tracked. -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentUsageRegistry.OutcomeReturns the enum constant of this class with the specified name.static AgentUsageRegistry.Outcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNTRACKED
The agent has no limit, so nothing is tracked. -
NOT_BUILDING
The run is over already; counting it would never be undone. -
ALREADY_COUNTED
The run is counted already, on this or on another agent. -
COUNTED
The run is counted now. -
OVER_LIMIT
The agent is at its limit, the run is not counted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-