Package hudson.init
Enum TermMilestone
- java.lang.Object
-
- java.lang.Enum<TermMilestone>
-
- hudson.init.TermMilestone
-
- All Implemented Interfaces:
Serializable
,Comparable<TermMilestone>
,org.jvnet.hudson.reactor.Milestone
public enum TermMilestone extends Enum<TermMilestone> implements 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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETED
The very last milestone This is used inInitializer.before()
since annotations cannot have null as the default value.STARTED
The very first milestone that gets achieved without doing anything.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jvnet.hudson.reactor.TaskBuilder
ordering()
Creates a set of dummy tasks to enforce ordering amongTermMilestone
s.String
toString()
static TermMilestone
valueOf(String name)
Returns the enum constant of this type with the specified name.static TermMilestone[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTED
public static final TermMilestone 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
public static final TermMilestone COMPLETED
The very last milestone This is used inInitializer.before()
since annotations cannot have null as the default value.
-
-
Method Detail
-
values
public static TermMilestone[] 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 (TermMilestone c : TermMilestone.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TermMilestone 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
-
ordering
public static org.jvnet.hudson.reactor.TaskBuilder ordering()
Creates a set of dummy tasks to enforce ordering amongTermMilestone
s.
-
toString
public String toString()
- Overrides:
toString
in classEnum<TermMilestone>
-
-