Class PeriodicBackupRestartListener
- java.lang.Object
-
- hudson.model.RestartListener
-
- org.jenkinsci.plugins.periodicbackup.PeriodicBackupRestartListener
-
- All Implemented Interfaces:
hudson.ExtensionPoint
@Extension public class PeriodicBackupRestartListener extends hudson.model.RestartListener
This RestartListener will veto the restart of Hudson (via safeRestart) while a restore is ongoing.
-
-
Constructor Summary
Constructors Constructor Description PeriodicBackupRestartListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PeriodicBackupRestartListener
get()
boolean
isReadyToRestart()
void
notReady()
void
ready()
-
-
-
Method Detail
-
ready
public void ready()
-
notReady
public void notReady()
-
isReadyToRestart
public boolean isReadyToRestart() throws IOException, InterruptedException
- Specified by:
isReadyToRestart
in classhudson.model.RestartListener
- Throws:
IOException
InterruptedException
-
get
public static PeriodicBackupRestartListener get()
-
-