Package hudson.init
Annotation Interface Terminator
Like
Initializer
but used during the shut down.- Author:
- Kohsuke Kawaguchi
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionIndicates that the specified milestone is necessary before executing this terminator.String[]
Indicates the milestones that this terminator contributes to.Indicates that this terminator is a necessary step before achieving the specified milestone.Key inMessages.properties
that represents what this task is about.String[]
Indicates the milestones necessary before executing this terminator.
-
Element Details
-
after
TermMilestone afterIndicates that the specified milestone is necessary before executing this terminator.This has the identical purpose as
requires()
, but it's separated to allow better type-safety when usingTermMilestone
as a requirement (since enum member definitions need to be constant.)- Default:
- STARTED
-
before
TermMilestone beforeIndicates that this terminator is a necessary step before achieving the specified milestone.This has the identical purpose as
attains()
. Seeafter()
for why there are two things to achieve the same goal.- Default:
- COMPLETED
-
requires
String[] requiresIndicates the milestones necessary before executing this terminator.- Default:
- {}
-
attains
String[] attainsIndicates the milestones that this terminator contributes to. A milestone is considered attained if all the terminators that attains the given milestone completes. So it works as a kind of join.- Default:
- {}
-
displayName
String displayNameKey inMessages.properties
that represents what this task is about. Used for rendering the progress. Defaults to "${short class name}.${method Name}".- Default:
- ""
-