]> source.dussan.org Git - archiva.git/commitdiff
better logging when cleaning temp group index
authorOlivier Lamy <olamy@apache.org>
Thu, 7 Feb 2013 23:44:28 +0000 (23:44 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 7 Feb 2013 23:44:28 +0000 (23:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443793 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/TemporaryGroupIndex.java
archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/TemporaryGroupIndexCleaner.java

index 06bb69e689ecbcb751798a01c3bbfbe777244055..9152160b0f82f69283c09ee3e893e79a11bb7c94 100644 (file)
@@ -76,6 +76,16 @@ public class TemporaryGroupIndex
         return this;
     }
 
+    public String getGroupId()
+    {
+        return groupId;
+    }
+
+    public void setGroupId( String groupId )
+    {
+        this.groupId = groupId;
+    }
+
     @Override
     public int hashCode()
     {
index 8d0cedaeb7f2ac0afff391715f1aa2eff10b6606..e34b24991992496956b617ecc13a545b23f3f1d2 100644 (file)
@@ -54,12 +54,13 @@ public class TemporaryGroupIndexCleaner
     @Scheduled(fixedDelay = 900000)
     public void cleanTemporaryIndex()
     {
-        log.info( "cleanTemporaryIndex" );
+
         for ( TemporaryGroupIndex temporaryGroupIndex : indexMerger.getTemporaryGroupIndexes() )
         {
             // cleanup files older than the ttl
             if ( new Date().getTime() - temporaryGroupIndex.getCreationTime() > indexMerger.getGroupMergedIndexTtl() )
             {
+                log.info( "cleanTemporaryIndex for groupId {}", temporaryGroupIndex.getGroupId() );
                 indexMerger.cleanTemporaryGroupIndex( temporaryGroupIndex );
 
             }