org.apache.archiva.repository.scanner
Class DefaultRepositoryScanner
java.lang.Object
org.apache.archiva.repository.scanner.DefaultRepositoryScanner
- All Implemented Interfaces:
- RepositoryScanner
@Service(value="repositoryScanner#default")
public class DefaultRepositoryScanner
- extends Object
- implements RepositoryScanner
DefaultRepositoryScanner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filetypes
@Inject
private FileTypes filetypes
consumerUtil
@Inject
private RepositoryContentConsumers consumerUtil
inProgressScans
private Set<RepositoryScannerInstance> inProgressScans
DefaultRepositoryScanner
public DefaultRepositoryScanner()
scan
public RepositoryScanStatistics scan(ManagedRepository repository,
long changesSince)
throws RepositoryScannerException
- Description copied from interface:
RepositoryScanner
- Scan the repository for content changes.
Internally, this will use the as-configured known and invalid consumer lists.
- Specified by:
scan
in interface RepositoryScanner
- Parameters:
repository
- the repository to change.changesSince
- the timestamp to use as a threshold on what is considered new or changed.
(To have all content be taken into consideration regardless of timestamp,
use the RepositoryScanner.FRESH_SCAN
constant)
- Returns:
- the statistics for this scan.
- Throws:
RepositoryScannerException
- if there was a fundamental problem with getting the discoverer started.
scan
public RepositoryScanStatistics scan(ManagedRepository repository,
List<KnownRepositoryContentConsumer> knownContentConsumers,
List<InvalidRepositoryContentConsumer> invalidContentConsumers,
List<String> ignoredContentPatterns,
long changesSince)
throws RepositoryScannerException
- Description copied from interface:
RepositoryScanner
- Scan the repository for content changes.
Internally, this will use the as-configured known and invalid consumer lists.
- Specified by:
scan
in interface RepositoryScanner
- Parameters:
repository
- the repository to change.knownContentConsumers
- the list of consumers that follow the KnownRepositoryContentConsumer
interface that should be used for this scan.invalidContentConsumers
- the list of consumers that follow the InvalidRepositoryContentConsumer
interface that should be used for this scan.ignoredContentPatterns
- list of patterns that should be ignored and not sent to any consumer.changesSince
- the timestamp to use as a threshold on what is considered new or changed.
(To have all content be taken into consideration regardless of timestamp,
use the RepositoryScanner.FRESH_SCAN
constant)
- Returns:
- the statistics for this scan.
- Throws:
RepositoryScannerException
- if there was a fundamental problem with getting the discoverer started.
gatherIds
private List<String> gatherIds(List<? extends RepositoryContentConsumer> consumers)
getInProgressScans
public Set<RepositoryScannerInstance> getInProgressScans()
- Specified by:
getInProgressScans
in interface RepositoryScanner
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.