Package jenkins.model
Class Jenkins.MasterRestartNotifyier
java.lang.Object
hudson.model.RestartListener
jenkins.model.Jenkins.MasterRestartNotifyier
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- Jenkins
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public static class Jenkins.MasterRestartNotifyier
extends RestartListener
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.RestartListener
RestartListener.Default
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Called periodically during the safe restart.void
Called immediately before the restart is actually triggered.Methods inherited from class hudson.model.RestartListener
all, isAllReady
-
Constructor Details
-
MasterRestartNotifyier
public MasterRestartNotifyier()
-
-
Method Details
-
onRestart
public void onRestart()Description copied from class:RestartListener
Called immediately before the restart is actually triggered.- Overrides:
onRestart
in classRestartListener
-
isReadyToRestart
Description copied from class:RestartListener
Called periodically during the safe restart.- Specified by:
isReadyToRestart
in classRestartListener
- Returns:
- false to block the restart
- Throws:
IOException
InterruptedException
-