hudson.model
Class RestartListener

java.lang.Object
  extended by hudson.model.RestartListener
All Implemented Interfaces:
ExtensionPoint
Direct Known Subclasses:
RestartListener.Default

public abstract class RestartListener
extends Object
implements ExtensionPoint

Extension point that allows plugins to veto the restart.

Since:
1.376
Author:
Kohsuke Kawaguchi

Nested Class Summary
static class RestartListener.Default
          Default logic.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
RestartListener()
           
 
Method Summary
static ExtensionList<RestartListener> all()
          Returns all the registered LabelFinders.
static boolean isAllReady()
          Returns true iff all the listeners OKed the restart.
abstract  boolean isReadyToRestart()
          Called periodically during the safe restart.
 void onRestart()
          Called immediately before the restart is actually triggered.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestartListener

public RestartListener()
Method Detail

isReadyToRestart

public abstract boolean isReadyToRestart()
                                  throws IOException,
                                         InterruptedException
Called periodically during the safe restart.

Returns:
false to block the restart
Throws:
IOException
InterruptedException

onRestart

public void onRestart()
Called immediately before the restart is actually triggered.


all

public static ExtensionList<RestartListener> all()
Returns all the registered LabelFinders.


isAllReady

public static boolean isAllReady()
                          throws IOException,
                                 InterruptedException
Returns true iff all the listeners OKed the restart.

Throws:
IOException
InterruptedException


Copyright © 2004-2013 Hudson. All Rights Reserved.