org.alfresco.repo.shutdown
Class ShutdownBackstop

java.lang.Object
  extended by org.springframework.extensions.surf.util.AbstractLifecycleBean
      extended by org.alfresco.repo.shutdown.ShutdownBackstop
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class ShutdownBackstop
extends org.springframework.extensions.surf.util.AbstractLifecycleBean

The Shutdown backstop is a spring bean that will ensure that shutdown completes within a given time. If alfresco is blocked - for example waiting for a remote resource or a long running actionbackstop will wait for a timeout and then call System.exit()


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
ShutdownBackstop()
           
 
Method Summary
 int getTimeout()
           
 boolean isEnabled()
           
protected  void onBootstrap(org.springframework.context.ApplicationEvent event)
           
protected  void onShutdown(org.springframework.context.ApplicationEvent event)
           
 void setEnabled(boolean enabled)
           
 void setTimeout(int timeout)
           
 
Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

ShutdownBackstop

public ShutdownBackstop()
Method Detail

setTimeout

public void setTimeout(int timeout)

getTimeout

public int getTimeout()

onBootstrap

protected void onBootstrap(org.springframework.context.ApplicationEvent event)
Specified by:
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean

onShutdown

protected void onShutdown(org.springframework.context.ApplicationEvent event)
Specified by:
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean

setEnabled

public void setEnabled(boolean enabled)

isEnabled

public boolean isEnabled()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.