AnsweredAssumed Answered

deployment history and modified files

Question asked by nicola.raglia on Jun 11, 2009
Latest reply on Jun 11, 2009 by nicola.raglia
Hello,
i've got a problem on my alfresco. I'd like delete a deployment history and the list of modified files under user's sandbox, because this two lists take an overhead on Alfresco. How can i obtain it?
I found this bean org.alfresco.repo.avm.AVMDeploymentAttemptCleaner, but i don't knwo if it can help me.
I configured it like this:
<?xml version='1.0' encoding='UTF-8'?>
   <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
  
   <!–
    Configuration of a scheduled job that, by default, at 4am removes any deployment attempt nodes
    that are older than 180 days.
    –>
   
    <beans>
      
        <bean id="avmDeploymentAttemptCleaner" class="org.alfresco.repo.avm.AVMDeploymentAttemptCleaner">
            <property name="adminUserName">
                <value>admin</value>
            </property>
            <!– number of days to keep deployment attempts –>
            <property name="maxAge">
                <value>4</value>
            </property>
            <property name="nodeService">
                <ref bean="NodeService" />
            </property>
            <property name="transactionService">
                <ref bean="TransactionService" />
            </property>
            <property name="searchService">
                <ref bean="SearchService" />
            </property>
            <property name="importerBootstrap">
                <ref bean="spacesBootstrap" />
            </property>
        </bean>
       
        <bean id="avmDeploymentAttemptCleanup" class="org.alfresco.util.CronTriggerBean">
            <property name="jobDetail">
                <bean id="avmDeploymentAttemptCleanerDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
                    <property name="jobClass">
                        <value>org.alfresco.repo.avm.AVMDeploymentAttemptCleanerJob</value>
                    </property>
                    <property name="jobDataAsMap">
                        <map>
                            <entry key="deploymentAttemptCleaner">
                                <ref bean="avmDeploymentAttemptCleaner" />
                            </entry>
                        </map>
                    </property>
                </bean>
            </property>
            <property name="scheduler">
                <ref bean="schedulerFactory" />
            </property>
            <!– trigger at 4:00am each day –>
            <property name="cronExpression">
                <value>0 0 11 * * ?</value>
            </property>
        </bean>
       
    </beans>

to clean the deployment history older of 4 days.
From my log i read it: 1:00:00,072  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Finding old deploymentattempt nodes using query: @wca\:deployattempttime:[0001\-01\-01T00:00:00 TO 2009\-6\-7T00:00:00]
11:00:00,274  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleting 157 old deployment attempts
11:00:00,909  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/79f82401-33fa-48f7-bef6-2d1c1ab923c4
11:00:01,118  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/3b2b7436-af24-4f4b-929d-b42a5742085f
11:00:01,270  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/2b8b838d-876c-424b-81b9-3b248fb8f1e6
11:00:01,442  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/5ad90282-08de-47df-8ec7-00dbdb70cc8f
11:00:01,550  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/eb006f82-7658-4819-b1ad-d1b0e81748a9
11:00:01,692  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/a4b2fd00-e15d-4e2e-b854-047da3a83b40
11:00:01,794  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/5b718830-d036-4b18-89e7-a24c8fe1133e
11:00:01,891  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/80734206-c5d6-4fd5-b704-d8362186f143
11:00:02,057  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/303a9eeb-94cb-4d9b-ba12-b2164e371c54


IF i see the deployment history i find,hovewer, deployments older of 4 days, if such nothing changed.

Everyone have a suggestion for me?

Thanks.

Nicola.

Outcomes