Class RestartDrainAdministrativeMonitor
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
org.jenkins.ci.plugins.saferestart.RestartDrainAdministrativeMonitor
- All Implemented Interfaces:
ExtensionPoint,ModelObject,SearchableModelObject,SearchItem,org.kohsuke.stapler.StaplerProxy
Tells administrators that a restart is pending while
RestartDrain is active. Core shows
its own banner only once quiet-down starts, which happens after the last build finishes.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.AdministrativeMonitor
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoCancel()Cancels the drain from the monitor and returns to the Manage Jenkins page.intbooleanMethods inherited from class hudson.model.AdministrativeMonitor
all, checkRequiredPermission, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, hasPermissionToDisplay, hasRequiredPermission, isEnabled, isSecurityMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Constructor Details
-
RestartDrainAdministrativeMonitor
public RestartDrainAdministrativeMonitor()
-
-
Method Details
-
isActivated
public boolean isActivated()- Specified by:
isActivatedin classAdministrativeMonitor
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject- Overrides:
getDisplayNamein classAdministrativeMonitor
-
getRunningCount
public int getRunningCount()- Returns:
- number of builds that still hold the restart
-
doCancel
public org.kohsuke.stapler.HttpResponse doCancel()Cancels the drain from the monitor and returns to the Manage Jenkins page.
-