archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1233265 - /archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java
Date Thu, 19 Jan 2012 10:09:22 GMT
Author: olamy
Date: Thu Jan 19 10:09:21 2012
New Revision: 1233265

URL: http://svn.apache.org/viewvc?rev=1233265&view=rev
Log:
add log info on maven repository indexing

Modified:
    archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java

Modified: archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java?rev=1233265&r1=1233264&r2=1233265&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java
(original)
+++ archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java
Thu Jan 19 10:09:21 2012
@@ -50,6 +50,7 @@ import javax.annotation.PostConstruct;
 import javax.inject.Inject;
 import java.io.File;
 import java.io.IOException;
+import java.util.Arrays;
 
 /**
  * ArchivaIndexingTaskExecutor Executes all indexing tasks. Adding, updating and removing
artifacts from the index are
@@ -104,7 +105,12 @@ public class ArchivaIndexingTaskExecutor
         {
             try
             {
+                long start = System.currentTimeMillis();
                 nexusIndexer.scan( context, null, indexingTask.isOnlyUpdate() );
+                long end = System.currentTimeMillis();
+                log.info( "indexed maven repository: {}, onlyUpdate: {}, time {} ms",
+                          Arrays.asList( repository.getId(), indexingTask.isOnlyUpdate(),
( end - start ) ).toArray(
+                              new Object[3] ) );
             }
             catch ( IOException e )
             {



Mime
View raw message