You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by st...@apache.org on 2016/05/02 10:59:35 UTC

svn commit: r1741940 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java

Author: stefanegli
Date: Mon May  2 08:59:35 2016
New Revision: 1741940

URL: http://svn.apache.org/viewvc?rev=1741940&view=rev
Log:
SLING-5705 : add and set scheduler.concurrent to false by default - the ChunkCleanUpTask should not be started concurrently

Modified:
    sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java

Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java?rev=1741940&r1=1741939&r2=1741940&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java (original)
+++ sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java Mon May  2 08:59:35 2016
@@ -67,7 +67,9 @@ import org.slf4j.LoggerFactory;
         + "See http://www.docjar.com/docs/api/org/quartz/CronTrigger.html for a description "
         + "of the format for this value."),
     @Property(name = "service.description", value = "Periodic Chunk Cleanup Job", propertyPrivate = true),
-    @Property(name = "service.vendor", value = "The Apache Software Foundation", propertyPrivate = true) })
+    @Property(name = "service.vendor", value = "The Apache Software Foundation", propertyPrivate = true),
+    @Property(name = "scheduler.concurrent", label = "scheduler.concurrent", boolValue = false, 
+        description = "Allow Chunk Cleanup Task to run concurrently (default: false).")})
 public class ChunkCleanUpTask implements Runnable {
 
     /** default log */
@@ -76,7 +78,7 @@ public class ChunkCleanUpTask implements
     @Reference
     private SlingRepository repository;
 
-    @Property(intValue = 360, description = "The chunk's age in minutes before it is considered for clean up.")
+    @Property(intValue = 360, label = "chunk.cleanup.age", description = "The chunk's age in minutes before it is considered for clean up.")
     private static final String CHUNK_CLEANUP_AGE = "chunk.cleanup.age";
 
     private SlingFileUploadHandler uploadhandler = new SlingFileUploadHandler();