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
Constructors Constructor Description MasterRestartNotifyier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadyToRestart()
Called periodically during the safe restart.void
onRestart()
Called immediately before the restart is actually triggered.-
Methods inherited from class hudson.model.RestartListener
all, isAllReady
-
-
-
-
Method Detail
-
onRestart
public void onRestart()
Description copied from class:RestartListener
Called immediately before the restart is actually triggered.- Overrides:
onRestart
in classRestartListener
-
isReadyToRestart
public boolean isReadyToRestart() throws IOException, InterruptedException
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
-
-