org.jenkinsci.plugins.periodicbackup
Class PeriodicBackupRestartListener

java.lang.Object
  extended by hudson.model.RestartListener
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.RestartListener
hudson.model.RestartListener.Default
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
PeriodicBackupRestartListener()
           
 
Method Summary
static PeriodicBackupRestartListener get()
           
 boolean isReadyToRestart()
           
 void notReady()
           
 void ready()
           
 
Methods inherited from class hudson.model.RestartListener
all, isAllReady, onRestart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodicBackupRestartListener

public PeriodicBackupRestartListener()
Method Detail

ready

public void ready()

notReady

public void notReady()

isReadyToRestart

public boolean isReadyToRestart()
                         throws java.io.IOException,
                                java.lang.InterruptedException
Specified by:
isReadyToRestart in class hudson.model.RestartListener
Throws:
java.io.IOException
java.lang.InterruptedException

get

public static PeriodicBackupRestartListener get()


Copyright © 2004-2013. All Rights Reserved.