]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1751] removed unused methods and config + update docs
authorMaria Odea B. Ching <oching@apache.org>
Mon, 20 May 2013 10:28:30 +0000 (10:28 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Mon, 20 May 2013 10:28:30 +0000 (10:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1484418 13f79535-47bb-0310-9956-ffa450edef68

archiva-docs/src/site/apt/userguide/virtual-repositories.apt
archiva-jetty/pom.xml
archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/DefaultIndexMerger.java
archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/merger/IndexMerger.java
archiva-modules/archiva-web/archiva-webapp/pom.xml

index e0e3dfdffebc7ae1f1f896848cc89abe44d7adab..dcd76279a45e8c30f595fc7c5cae7044d62133f5 100644 (file)
@@ -140,7 +140,7 @@ Virtual Repositories
   merging repositories index for which the current user has karma.
   This merged index is available in the path .indexer .
 
-  To not generate this merged index on each request, there is a ttl value for build merged index.
-  This ttl has a default value of 30 minutes. You can change it with modifying the sys props value <<<archiva.tmp.group.index.ttl>>> (see your <<<wrapper.conf>>> file)
+  To not generate this merged index on each request, there is a ttl (time to live) value for build merged index. It can be configured
+  in the repository group configuration. This ttl has a default value of 30 minutes.
 
 
index d54deb81a4c6abaaa753665c3b9045afbb0da10b..4c589fcf1508fb1f7040048307a4e2a7c452e296 100644 (file)
                   -->
                   <systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty>
                   <systemProperty>java.io.tmpdir=%ARCHIVA_BASE%/temp</systemProperty>
-                  <systemProperty>archiva.tmp.group.index.ttl=30</systemProperty>
                   <systemProperty>AsyncLogger.WaitStrategy=Sleep</systemProperty>
                 </systemProperties>
                 <extraArguments>
index e97de6ff8d3173ff70d76af4bd7a189c7d9ebbd4..4a53182f8f6ba8bc9c8c4aa2bd98cf97e3f050de 100644 (file)
@@ -19,6 +19,7 @@ package org.apache.archiva.indexer.merger;
  */
 
 import com.google.common.io.Files;
+
 import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin;
 import org.apache.archiva.common.plexusbridge.MavenIndexerUtils;
 import org.apache.archiva.common.plexusbridge.PlexusSisuBridge;
@@ -35,7 +36,6 @@ import org.slf4j.LoggerFactory;
 import org.springframework.scheduling.annotation.Async;
 import org.springframework.stereotype.Service;
 
-import javax.annotation.PostConstruct;
 import javax.inject.Inject;
 import java.io.File;
 import java.io.IOException;
@@ -70,8 +70,6 @@ public class DefaultIndexMerger
 
     private List<TemporaryGroupIndex> temporaryGroupIndexes = new CopyOnWriteArrayList<TemporaryGroupIndex>();
 
-    private int groupMergedIndexTtl;
-
     @Inject
     public DefaultIndexMerger( PlexusSisuBridge plexusSisuBridge, MavenIndexerUtils mavenIndexerUtils )
         throws PlexusSisuBridgeException
@@ -81,12 +79,6 @@ public class DefaultIndexMerger
         indexPacker = plexusSisuBridge.lookup( IndexPacker.class, "default" );
     }
 
-    @PostConstruct
-    public void intialize()
-    {
-        this.groupMergedIndexTtl = Integer.getInteger( IndexMerger.TMP_GROUP_INDEX_SYS_KEY, DEFAULT_GROUP_INDEX_TTL );
-    }
-
     public IndexingContext buildMergedIndex( IndexMergerRequest indexMergerRequest )
         throws IndexMergerException
     {
@@ -170,9 +162,4 @@ public class DefaultIndexMerger
     {
         return this.temporaryGroupIndexes;
     }
-
-    public int getGroupMergedIndexTtl()
-    {
-        return this.groupMergedIndexTtl;
-    }
 }
index 462c3e4a1837233fe7978757464c61a5c7d1ab0f..756819e4f7d0735aebde790470c31f57bd005146 100644 (file)
@@ -28,12 +28,6 @@ import java.util.Collection;
  */
 public interface IndexMerger
 {
-
-    /**
-     * system property which contains the value in s for ttl of temporary index groups
-     */
-    String TMP_GROUP_INDEX_SYS_KEY = "archiva.tmp.group.index.ttl";
-
     /**
      * @param indexMergerRequest
      * @return a temporary directory with a merge index (directory marked deleteOnExit)
@@ -45,10 +39,4 @@ public interface IndexMerger
     void cleanTemporaryGroupIndex( TemporaryGroupIndex temporaryGroupIndex );
 
     Collection<TemporaryGroupIndex> getTemporaryGroupIndexes();
-
-    /**
-     * @return ttl of temporay group index
-     */
-    int getGroupMergedIndexTtl();
-
 }
index 4e201b764c7b9bdc8d652d10593fd86b0bc5865f..8d54be18ddbc9c03a2f9311e9f8c6b766375392c 100644 (file)
             <archiva.devMode>${archiva.devMode}</archiva.devMode>
             <archiva.javascriptLog>${archiva.javascriptLog}</archiva.javascriptLog>
             <archiva.logMissingI18n>${archiva.logMissingI18n}</archiva.logMissingI18n>
-            <archiva.tmp.group.index.ttl>${archiva.groupIndexTtl}</archiva.tmp.group.index.ttl>
             <!--
             not needed as we use asyncLogger in configuration
             <Log4jContextSelector>org.apache.logging.log4j.core.async.AsyncLoggerContextSelector</Log4jContextSelector>