Package org.alfresco.repo.admin
Class ConfigurationChecker
java.lang.Object
org.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.repo.admin.ConfigurationChecker
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
public class ConfigurationChecker
extends org.springframework.extensions.surf.util.AbstractLifecycleBean
Component to perform a bootstrap check of the alignment of the database and content store.
The algorithm is:
- Checks that an absolute path is used
- Ensures that the system descriptor content is available (created at bootstrap)
- Author:
- Derek Hulley
-
Field Summary
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonBootstrap(org.springframework.context.ApplicationEvent event) protected voidonShutdown(org.springframework.context.ApplicationEvent event) voidsetContentService(ContentService contentService) voidsetDirRoot(String dirRoot) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetSearchService(SearchService searchService) voidsetStrict(boolean strict) This flag controls the behaviour of the component in the event of problems being found.voidsetSystemBootstrap(ImporterBootstrap systemBootstrap) voidsetTransactionService(TransactionService transactionService) toString()Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
ConfigurationChecker
public ConfigurationChecker()
-
-
Method Details
-
toString
-
setStrict
public void setStrict(boolean strict) This flag controls the behaviour of the component in the event of problems being found. Generally, the system should be strict, but this can be changed if indexes are going to be recovered, or if missing content is acceptable.- Parameters:
strict-trueto prevent system startup if problems are found, otherwisefalseto allow the system to startup regardless.
-
setDirRoot
-
setSystemBootstrap
-
setTransactionService
-
setNamespaceService
-
setNodeService
-
setSearchService
-
setContentService
-
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event) - Specified by:
onBootstrapin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
getSystemDescriptor
- Returns:
- Returns the system descriptor node or null
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event) - Specified by:
onShutdownin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-