@Service(value="repositoryStatisticsManager#default") public class DefaultRepositoryStatisticsManager extends Object implements RepositoryStatisticsManager
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
log |
private static TimeZone |
UTC_TIME_ZONE |
Constructor and Description |
---|
DefaultRepositoryStatisticsManager() |
Modifier and Type | Method and Description |
---|---|
void |
addStatisticsAfterScan(MetadataRepository metadataRepository,
String repositoryId,
Date startTime,
Date endTime,
long totalFiles,
long newFiles) |
private static SimpleDateFormat |
createNameFormat() |
void |
deleteStatistics(MetadataRepository metadataRepository,
String repositoryId) |
RepositoryStatistics |
getLastStatistics(MetadataRepository metadataRepository,
String repositoryId) |
List<RepositoryStatistics> |
getStatisticsInRange(MetadataRepository metadataRepository,
String repositoryId,
Date startTime,
Date endTime) |
boolean |
hasStatistics(MetadataRepository metadataRepository,
String repositoryId) |
private void |
populateStatisticsFromJcr(javax.jcr.Session session,
String repositoryId,
RepositoryStatistics repositoryStatistics) |
private void |
populateStatisticsFromRepositoryWalk(MetadataRepository metadataRepository,
String repositoryId,
RepositoryStatistics repositoryStatistics) |
private void |
walkRepository(MetadataRepository metadataRepository,
RepositoryStatistics stats,
String repositoryId,
String ns) |
private static final org.slf4j.Logger log
private static final TimeZone UTC_TIME_ZONE
public DefaultRepositoryStatisticsManager()
public boolean hasStatistics(MetadataRepository metadataRepository, String repositoryId) throws MetadataRepositoryException
hasStatistics
in interface RepositoryStatisticsManager
MetadataRepositoryException
public RepositoryStatistics getLastStatistics(MetadataRepository metadataRepository, String repositoryId) throws MetadataRepositoryException
getLastStatistics
in interface RepositoryStatisticsManager
MetadataRepositoryException
private void walkRepository(MetadataRepository metadataRepository, RepositoryStatistics stats, String repositoryId, String ns) throws MetadataResolutionException
MetadataResolutionException
public void addStatisticsAfterScan(MetadataRepository metadataRepository, String repositoryId, Date startTime, Date endTime, long totalFiles, long newFiles) throws MetadataRepositoryException
addStatisticsAfterScan
in interface RepositoryStatisticsManager
MetadataRepositoryException
private void populateStatisticsFromJcr(javax.jcr.Session session, String repositoryId, RepositoryStatistics repositoryStatistics) throws MetadataRepositoryException
MetadataRepositoryException
private void populateStatisticsFromRepositoryWalk(MetadataRepository metadataRepository, String repositoryId, RepositoryStatistics repositoryStatistics) throws MetadataRepositoryException
MetadataRepositoryException
public void deleteStatistics(MetadataRepository metadataRepository, String repositoryId) throws MetadataRepositoryException
deleteStatistics
in interface RepositoryStatisticsManager
MetadataRepositoryException
public List<RepositoryStatistics> getStatisticsInRange(MetadataRepository metadataRepository, String repositoryId, Date startTime, Date endTime) throws MetadataRepositoryException
getStatisticsInRange
in interface RepositoryStatisticsManager
MetadataRepositoryException
private static SimpleDateFormat createNameFormat()
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.