@Service(value="repositoryScanner#default") public class DefaultRepositoryScanner extends Object implements RepositoryScanner
| Modifier and Type | Field and Description |
|---|---|
private FileTypes |
filetypes |
private Set<RepositoryScannerInstance> |
inProgressScans |
private RepositoryContentConsumers |
repositoryContentConsumers |
FRESH_SCAN, IGNORABLE_CONTENT| Constructor and Description |
|---|
DefaultRepositoryScanner() |
| Modifier and Type | Method and Description |
|---|---|
private List<String> |
gatherIds(List<? extends RepositoryContentConsumer> consumers) |
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.
|
@Inject private RepositoryContentConsumers repositoryContentConsumers
private Set<RepositoryScannerInstance> inProgressScans
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.private List<String> gatherIds(List<? extends RepositoryContentConsumer> consumers)
public Set<RepositoryScannerInstance> getInProgressScans()
getInProgressScans in interface RepositoryScannerCopyright © 2006–2023 The Apache Software Foundation. All rights reserved.