org.apache.maven.archiva.repository.scanner
Class DefaultRepositoryScanner
java.lang.Object
org.apache.maven.archiva.repository.scanner.DefaultRepositoryScanner
- All Implemented Interfaces:
- RepositoryScanner
public class DefaultRepositoryScanner
- extends java.lang.Object
- implements RepositoryScanner
DefaultRepositoryScanner
|
Method Summary |
RepositoryScanStatistics |
scan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository,
java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> knownContentConsumers,
java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> invalidContentConsumers,
java.util.List<java.lang.String> ignoredContentPatterns,
long changesSince)
Scan the repository for content changes. |
RepositoryScanStatistics |
scan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository,
long changesSince)
Scan the repository for content changes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRepositoryScanner
public DefaultRepositoryScanner()
scan
public RepositoryScanStatistics scan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository,
long changesSince)
throws RepositoryException
- 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:
RepositoryException - if there was a fundamental problem with getting the discoverer started.
scan
public RepositoryScanStatistics scan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository,
java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> knownContentConsumers,
java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> invalidContentConsumers,
java.util.List<java.lang.String> ignoredContentPatterns,
long changesSince)
throws RepositoryException
- 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:
RepositoryException - if there was a fundamental problem with getting the discoverer started.