public class RepositoryWalkingStatisticsProvider extends Object implements RepositoryStatisticsProvider
Constructor and Description |
---|
RepositoryWalkingStatisticsProvider() |
Modifier and Type | Method and Description |
---|---|
void |
populateStatistics(RepositorySession repositorySession,
MetadataRepository metadataRepository,
String repositoryId,
RepositoryStatistics repositoryStatistics)
Walks each namespace of the given repository id and counts the artifacts.
|
public RepositoryWalkingStatisticsProvider()
public void populateStatistics(RepositorySession repositorySession, MetadataRepository metadataRepository, String repositoryId, RepositoryStatistics repositoryStatistics) throws MetadataRepositoryException
populateStatistics
in interface RepositoryStatisticsProvider
repositorySession
- metadataRepository
- The repository implementationrepositoryId
- The repository IdrepositoryStatistics
- The statistics object that must be populatedMetadataRepositoryException
- Throws the repository exception, if an error occurs while accessing the repository.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.