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-metadata-consumer/src | |
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-metadata-consumer/src')
-rw-r--r-- | archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java index 762f79d55..61e496f6a 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java @@ -127,6 +127,12 @@ public class ArchivaMetadataCreationConsumer this.whenGathered = whenGathered; } + public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered, boolean executeOnEntireRepo ) + throws ConsumerException + { + beginScan( repository, whenGathered ); + } + public void processFile( String path ) throws ConsumerException { @@ -174,11 +180,22 @@ public class ArchivaMetadataCreationConsumer metadataRepository.updateProject( repoId, project ); } + public void processFile( String path, boolean executeOnEntireRepo ) + throws ConsumerException + { + processFile( path ); + } + public void completeScan() { /* do nothing */ } + public void completeScan( boolean executeOnEntireRepo ) + { + completeScan(); + } + public void afterConfigurationChange( Registry registry, String propertyName, Object propertyValue ) { if ( ConfigurationNames.isRepositoryScanning( propertyName ) ) |