org.apache.archiva.indexer.merger
Class DefaultIndexMerger
java.lang.Object
org.apache.archiva.indexer.merger.DefaultIndexMerger
- All Implemented Interfaces:
- IndexMerger
@Service(value="indexMerger#default")
public class DefaultIndexMerger
- extends Object
- implements IndexMerger
- Since:
- 1.4-M2
- Author:
- Olivier Lamy
|
Constructor Summary |
DefaultIndexMerger(org.apache.archiva.common.plexusbridge.PlexusSisuBridge plexusSisuBridge,
org.apache.archiva.common.plexusbridge.MavenIndexerUtils mavenIndexerUtils)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIndexMerger
@Inject
public DefaultIndexMerger(org.apache.archiva.common.plexusbridge.PlexusSisuBridge plexusSisuBridge,
org.apache.archiva.common.plexusbridge.MavenIndexerUtils mavenIndexerUtils)
throws org.apache.archiva.common.plexusbridge.PlexusSisuBridgeException
- Throws:
org.apache.archiva.common.plexusbridge.PlexusSisuBridgeException
intialize
@PostConstruct
public void intialize()
buildMergedIndex
public org.apache.maven.index.context.IndexingContext buildMergedIndex(Collection<String> repositoriesIds,
boolean packIndex)
throws IndexMergerException
- Specified by:
buildMergedIndex in interface IndexMerger
- Parameters:
repositoriesIds - repositories Ids to merge contentpackIndex - will generate a downloadable index
- Returns:
- a temporary directory with a merge index (directory marked deleteOnExit)
- Throws:
IndexMergerException
cleanTemporaryGroupIndex
@Async
public void cleanTemporaryGroupIndex(TemporaryGroupIndex temporaryGroupIndex)
- Specified by:
cleanTemporaryGroupIndex in interface IndexMerger
getTemporaryGroupIndexes
public Collection<TemporaryGroupIndex> getTemporaryGroupIndexes()
- Specified by:
getTemporaryGroupIndexes in interface IndexMerger
getDefaultGroupIndexTtl
public int getDefaultGroupIndexTtl()
- Specified by:
getDefaultGroupIndexTtl in interface IndexMerger
- Returns:
- ttl of temporay group index
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.