mirror of https://github.com/apache/archiva.git
rename method
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9ff7c33332
commit
3e447d498c
|
@ -167,7 +167,7 @@ public class DefaultIndexMerger
|
|||
return this.temporaryGroupIndexes;
|
||||
}
|
||||
|
||||
public int getDefaultGroupIndexTtl()
|
||||
public int getGroupMergedIndexTtl()
|
||||
{
|
||||
return this.defaultGroupIndexTtl;
|
||||
}
|
||||
|
|
|
@ -50,6 +50,6 @@ public interface IndexMerger
|
|||
/**
|
||||
* @return ttl of temporay group index
|
||||
*/
|
||||
int getDefaultGroupIndexTtl();
|
||||
int getGroupMergedIndexTtl();
|
||||
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ public class TemporaryGroupIndexCleaner
|
|||
@Scheduled( fixedDelay = 900000 )
|
||||
public void cleanTemporaryIndex()
|
||||
{
|
||||
log.info( "cleanTemporaryIndex" );
|
||||
for ( TemporaryGroupIndex temporaryGroupIndex : indexMerger.getTemporaryGroupIndexes() )
|
||||
{
|
||||
// cleanup files older than 60 minutes 3600000
|
||||
|
|
|
@ -82,7 +82,6 @@ import org.apache.jackrabbit.webdav.DavSession;
|
|||
import org.apache.jackrabbit.webdav.lock.LockManager;
|
||||
import org.apache.jackrabbit.webdav.lock.SimpleLockManager;
|
||||
import org.apache.maven.index.context.IndexingContext;
|
||||
import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
|
||||
import org.codehaus.plexus.digest.ChecksumFile;
|
||||
import org.codehaus.plexus.digest.Digester;
|
||||
import org.codehaus.plexus.digest.DigesterException;
|
||||
|
@ -1179,7 +1178,7 @@ public class ArchivaDavResourceFactory
|
|||
|
||||
if ( tmp != null && tmp.getDirectory() != null && tmp.getDirectory().exists() )
|
||||
{
|
||||
if ( System.currentTimeMillis() - tmp.getCreationTime() > ( indexMerger.getDefaultGroupIndexTtl() * 60
|
||||
if ( System.currentTimeMillis() - tmp.getCreationTime() > ( indexMerger.getGroupMergedIndexTtl() * 60
|
||||
* 1000 ) )
|
||||
{
|
||||
log.debug( "tmp group index is too old so delete it" );
|
||||
|
|
Loading…
Reference in New Issue