Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
The following describs the Alfresco shutdown process.
Upon receiving a shutdown event Alfresco begins its shutdown process.
The org.alfresco.util.AbstractLifecycleBean is a base class for beans managed by the spring framework.
/**
* Callback for initialising Component on first startup of Alfresco Server
*
* @param event
*/
protected abstract void onBootstrap(ApplicationEvent event);
/**
* Callback for terminating Component on shutdown of Alfresco Server
*
* @param event
*/
protected abstract void onShutdown(ApplicationEvent event);
The onShutdown event handler can not assume that any resources are available,
in particular transactions.
* A class that keeps track of the VM shutdown status. It can be
* used by threads as a singleton to check if the
* VM shutdown status has been activated.
The VM shutdown listeners are listening for termination of the Java VM.
Some notes about vm listeners.
This would prevent new units of work from starting but allow current work to complete. Alfresco does not implement this at the moment, although it is being considered.
The features would include.
The shutdown backstop is a spring bean that prevents an Alfresco server from failing to shut down. Depending upon the work in progress Alfresco may occasionally take too long to shut down (for example if it is waiting upon a remote resource.) The backstop gives Alfresco a reasonable time to shutdown normally and then if Alfresco is still running writes some diagnostic information and ends Alfresco immediatley.
The Shutdown Backstop Bean is a special bean which is used to terminate Alfresco if its
normal shutdown does not complete in a reasonable time.
Spring definition.
<bean id='shutdownBackstop' class='org.alfresco.repo.shutdown.ShutdownBackstop'>
<property name='timeout'>
<value>${shutdown.backstop.timeout}</value>
</property>
<property name='enabled'>
<value>${shutdown.backstop.enabled}</value>
</property>
</bean>
The following settings in repository.properties configure the shutdown backstop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.