org.apache.archiva.indexer.merger
Class DefaultIndexMerger

java.lang.Object
  extended by 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)
           
 
Method Summary
 org.apache.maven.index.context.IndexingContext buildMergedIndex(IndexMergerRequest indexMergerRequest)
           
 void cleanTemporaryGroupIndex(TemporaryGroupIndex temporaryGroupIndex)
           
 Collection<TemporaryGroupIndex> getTemporaryGroupIndexes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

buildMergedIndex

public org.apache.maven.index.context.IndexingContext buildMergedIndex(IndexMergerRequest indexMergerRequest)
                                                                throws IndexMergerException
Specified by:
buildMergedIndex in interface IndexMerger
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


Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.