Package hudson.init
Enum Class TermMilestone
- All Implemented Interfaces:
Serializable
,Comparable<TermMilestone>
,Constable
,org.jvnet.hudson.reactor.Milestone
Various key milestone in the termination process of Jenkins.
Plugins can use these milestones to execute their tear down processing at the right moment
(in addition to defining their own milestones by implementing Milestone
.
These milestones are achieve in this order.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe very last milestone This is used inInitializer.before()
since annotations cannot have null as the default value.The very first milestone that gets achieved without doing anything. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jvnet.hudson.reactor.TaskBuilder
ordering()
Creates a set of dummy tasks to enforce ordering amongTermMilestone
s.toString()
static TermMilestone
Returns the enum constant of this class with the specified name.static TermMilestone[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTED
The very first milestone that gets achieved without doing anything. This is used inInitializer.after()
since annotations cannot have null as the default value. -
COMPLETED
The very last milestone This is used inInitializer.before()
since annotations cannot have null as the default value.
-
-
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
-
ordering
public static org.jvnet.hudson.reactor.TaskBuilder ordering()Creates a set of dummy tasks to enforce ordering amongTermMilestone
s. -
toString
- Overrides:
toString
in classEnum<TermMilestone>
-