diff options
author | Maria Odea B. Ching <oching@apache.org> | 2010-11-25 11:20:47 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2010-11-25 11:20:47 +0000 |
commit | bc56d6353c98c3ff4ed51033ac9ec8a09351926a (patch) | |
tree | ff25b2856250af4da932c051a125124ae35c093e /archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java | |
parent | 0452f87c94754cd795fd526b0bcba8f1f1d937aa (diff) | |
download | archiva-bc56d6353c98c3ff4ed51033ac9ec8a09351926a.tar.gz archiva-bc56d6353c98c3ff4ed51033ac9ec8a09351926a.zip |
[MRM-1097]
o upgrade nexus indexer to 3.0.1 + added logger bean which is needed by NexusIndexer
o for deployments/proxied artifacts, create and close indexing context when indexing task is executed as compared to the original behavior where the indexing context is created
before it is queued (so as the indexing task queue builds up, more indexing contexts are being opened/created which might be causing the too many open files problem)
o updated unit tests with changes made
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1039004 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java')
-rw-r--r-- | archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java index 203e5bd76..f7b5a2487 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java @@ -63,6 +63,22 @@ public interface RepositoryContentConsumer extends Consumer /** * <p> + * Event that triggers at the beginning of a scan, where you can also indicate whether the consumers will be + * executed on an entire repository or on a specific resource. + * </p> + * + * @see RepositoryContentConsumer#beginScan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration, java.util.Date ) + * + * @param repository the repository that this consumer is being used for. + * @param whenGathered the start of the repository scan + * @param executeOnEntireRepo flags whether the consumer will be executed on an entire repository or just on a specific resource + * @throws ConsumerException if there was a problem with using the provided repository with the consumer. + */ + public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered, boolean executeOnEntireRepo ) + throws ConsumerException; + + /** + * <p> * Event indicating a file is to be processed by this consumer. * </p> * @@ -76,6 +92,14 @@ public interface RepositoryContentConsumer extends Consumer * @throws ConsumerException if there was a problem processing this file. */ public void processFile( String path ) throws ConsumerException; + + /** + * + * @param path + * @param executeOnEntireRepo + * @throws Exception + */ + public void processFile( String path, boolean executeOnEntireRepo ) throws Exception; /** * <p> @@ -90,6 +114,13 @@ public interface RepositoryContentConsumer extends Consumer public void completeScan(); /** + * + * @param executeOnEntireRepo + * @throws Exception + */ + public void completeScan( boolean executeOnEntireRepo ); + + /** * Whether the consumer should process files that have not been modified since the time passed in to the scan * method. * @return whether to process the unmodified files |