mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3129 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
87 lines
3.2 KiB
XML
87 lines
3.2 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
|
|
|
<beans>
|
|
<!--
|
|
This file is not included in the application context by default.
|
|
If you include this file, please ensure that you review the sample
|
|
beans contained here.
|
|
-->
|
|
|
|
<bean id="backupContentStore"
|
|
class="org.alfresco.repo.content.filestore.FileContentStore">
|
|
<constructor-arg>
|
|
<value>${dir.contentstore}/../backups/alfresco</value>
|
|
</constructor-arg>
|
|
</bean>
|
|
|
|
<bean id="contentStoreReplicator"
|
|
class="org.alfresco.repo.content.replication.ContentStoreReplicator"
|
|
depends-on="fileContentStore, backupContentStore" >
|
|
<!-- content source -->
|
|
<property name="sourceStore">
|
|
<ref bean="fileContentStore" />
|
|
</property>
|
|
<!-- content target -->
|
|
<property name="targetStore">
|
|
<ref bean="backupContentStore" />
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="contentStoreBackupTrigger" class="org.alfresco.util.CronTriggerBean">
|
|
<property name="jobDetail">
|
|
<bean class="org.springframework.scheduling.quartz.JobDetailBean">
|
|
<property name="jobClass">
|
|
<value>org.alfresco.repo.content.replication.ContentStoreReplicator$ContentStoreReplicatorJob</value>
|
|
</property>
|
|
<property name="jobDataAsMap">
|
|
<map>
|
|
<entry key="contentStoreReplicator">
|
|
<ref bean="contentStoreReplicator" />
|
|
</entry>
|
|
</map>
|
|
</property>
|
|
</bean>
|
|
</property>
|
|
<property name="scheduler">
|
|
<ref bean="schedulerFactory" />
|
|
</property>
|
|
<!-- trigger at 3am each day -->
|
|
<property name="cronExpression">
|
|
<value>0 0 03 * * ?</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="replicatingContentStore"
|
|
class="org.alfresco.repo.content.replication.ReplicatingContentStore" >
|
|
<!-- the preferred store for reads and writes -->
|
|
<property name="primaryStore">
|
|
<ref bean="fileContentStore" />
|
|
</property>
|
|
<!-- example of possible secondary store configuration -->
|
|
<property name="secondaryStores">
|
|
<list>
|
|
<ref bean="archiveStoreA" />
|
|
<ref bean="archiveStoreB" />
|
|
</list>
|
|
</property>
|
|
<!-- enable content missing from the primary store to be pulled in from the secondary stores -->
|
|
<property name="inbound">
|
|
<value>false</value>
|
|
</property>
|
|
<!-- enable replication from the primary to the secondary stores -->
|
|
<property name="outbound">
|
|
<value>false</value>
|
|
</property>
|
|
<!-- this is required if outbound replication is active, otherwise not -->
|
|
<property name="transactionService">
|
|
<ref bean="transactionComponent" />
|
|
</property>
|
|
<!-- set this to force outbound replication to be asynchronous -->
|
|
<property name="outboundThreadPoolExecutor">
|
|
<ref bean="threadPoolExecutor" />
|
|
</property>
|
|
</bean>
|
|
|
|
</beans>
|