mirror of
https://github.com/apache/archiva.git
synced 2025-02-08 11:06:03 +00:00
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 Collection<TemporaryGroupIndex> getTemporaryGroupIndexes()
|
||||
return this.temporaryGroupIndexes;
|
||||
}
|
||||
|
||||
public int getDefaultGroupIndexTtl()
|
||||
public int getGroupMergedIndexTtl()
|
||||
{
|
||||
return this.defaultGroupIndexTtl;
|
||||
}
|
||||
|
@ -50,6 +50,6 @@ IndexingContext buildMergedIndex( Collection<String> repositoriesIds, boolean pa
|
||||
/**
|
||||
* @return ttl of temporay group index
|
||||
*/
|
||||
int getDefaultGroupIndexTtl();
|
||||
int getGroupMergedIndexTtl();
|
||||
|
||||
}
|
||||
|
@ -54,6 +54,7 @@ public TemporaryGroupIndexCleaner( PlexusSisuBridge plexusSisuBridge )
|
||||
@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.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 @@ protected File buildMergedIndexDirectory( List<String> repositories, String acti
|
||||
|
||||
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…
x
Reference in New Issue
Block a user