@Service(value="repositoryScanner#default") public class DefaultRepositoryScanner extends Object implements RepositoryScanner
FRESH_SCAN, IGNORABLE_CONTENT| Constructor and Description | 
|---|
| DefaultRepositoryScanner() | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<RepositoryScannerInstance> | getInProgressScans() | 
| RepositoryScanStatistics | scan(ManagedRepository repository,
    List<KnownRepositoryContentConsumer> knownContentConsumers,
    List<InvalidRepositoryContentConsumer> invalidContentConsumers,
    List<String> ignoredContentPatterns,
    long changesSince)Scan the repository for content changes. | 
| RepositoryScanStatistics | scan(ManagedRepository repository,
    long changesSince)Scan the repository for content changes. | 
public DefaultRepositoryScanner()
public RepositoryScanStatistics scan(ManagedRepository repository, long changesSince) throws RepositoryScannerException
RepositoryScannerInternally, this will use the as-configured known and invalid consumer lists.
scan in interface RepositoryScannerrepository - 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)RepositoryScannerException - if there was a fundamental problem with getting the discoverer started.public RepositoryScanStatistics scan(ManagedRepository repository, List<KnownRepositoryContentConsumer> knownContentConsumers, List<InvalidRepositoryContentConsumer> invalidContentConsumers, List<String> ignoredContentPatterns, long changesSince) throws RepositoryScannerException
RepositoryScannerInternally, this will use the as-configured known and invalid consumer lists.
scan in interface RepositoryScannerrepository - 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)RepositoryScannerException - if there was a fundamental problem with getting the discoverer started.public Set<RepositoryScannerInstance> getInProgressScans()
getInProgressScans in interface RepositoryScannerCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.