Class RestartDrainAction
java.lang.Object
org.jenkins.ci.plugins.saferestart.RestartDrainAction
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction
Page and side-panel link for
RestartDrain: start or cancel the drain and see which
builds still hold the restart.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoCancel()Cancels the drain.org.kohsuke.stapler.HttpResponseStarts the drain.getDrain()Hidden when the "wait for running builds" option is on: the regular "Restart Safely" links lead here already, so a second link would be a duplicate.
-
Constructor Details
-
RestartDrainAction
public RestartDrainAction()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getIconFileName
Hidden when the "wait for running builds" option is on: the regular "Restart Safely" links lead here already, so a second link would be a duplicate. The page stays reachable.- Specified by:
getIconFileNamein interfaceAction
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getDrain
-
getSinceAgo
- Returns:
- how long ago the drain started, for display
-
doStart
Starts the drain. Restarts right away if nothing is running.- Parameters:
message- optional message for the shutdown banner
-
doCancel
public org.kohsuke.stapler.HttpResponse doCancel()Cancels the drain. Held-back builds start again.
-