mirror of https://github.com/apache/archiva.git
better logging when cleaning temp group index
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6da7af1bd2
commit
b72d669109
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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 );
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue