org.apache.archiva.repository.scanner
Interface RepositoryScanner

All Known Implementing Classes:
DefaultRepositoryScanner

public interface RepositoryScanner

RepositoryScanner


Field Summary
static long FRESH_SCAN
          The value to pass to scan(ManagedRepository, long) to have the scan operate in a fresh fashion, with no check on changes based on timestamp.
static String[] IGNORABLE_CONTENT
           Typical Ignorable Content patterns.
 
Method Summary
 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.
 

Field Detail

FRESH_SCAN

static final long FRESH_SCAN
The value to pass to scan(ManagedRepository, long) to have the scan operate in a fresh fashion, with no check on changes based on timestamp.

See Also:
Constant Field Values

IGNORABLE_CONTENT

static final String[] IGNORABLE_CONTENT

Typical Ignorable Content patterns.

NOTE: Do not use for normal webapp or task driven repository scanning.

These patterns are only valid for archiva-cli and archiva-converter use.

Method Detail

scan

RepositoryScanStatistics scan(ManagedRepository repository,
                              long changesSince)
                              throws RepositoryScannerException
Scan the repository for content changes.

Internally, this will use the as-configured known and invalid consumer lists.

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 FRESH_SCAN constant)
Returns:
the statistics for this scan.
Throws:
RepositoryScannerException - if there was a fundamental problem with getting the discoverer started.

scan

RepositoryScanStatistics scan(ManagedRepository repository,
                              List<KnownRepositoryContentConsumer> knownContentConsumers,
                              List<InvalidRepositoryContentConsumer> invalidContentConsumers,
                              List<String> ignoredContentPatterns,
                              long changesSince)
                              throws RepositoryScannerException
Scan the repository for content changes.

Internally, this will use the as-configured known and invalid consumer lists.

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 FRESH_SCAN constant)
Returns:
the statistics for this scan.
Throws:
RepositoryScannerException - if there was a fundamental problem with getting the discoverer started.

getInProgressScans

Set<RepositoryScannerInstance> getInProgressScans()


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.