@Service(value="repositoryStatisticsManager#default") public class DefaultRepositoryStatisticsManager extends Object implements RepositoryStatisticsManager
Constructor and Description |
---|
DefaultRepositoryStatisticsManager() |
Modifier and Type | Method and Description |
---|---|
void |
addStatisticsAfterScan(String repositoryId,
Date startTime,
Date endTime,
long totalFiles,
long newFiles) |
void |
deleteStatistics(String repositoryId) |
RepositoryStatistics |
getLastStatistics(String repositoryId) |
RepositorySessionFactory |
getRepositorySessionFactory() |
List<RepositoryStatistics> |
getStatisticsInRange(String repositoryId,
Date startTime,
Date endTime) |
boolean |
hasStatistics(String repositoryId) |
void |
setRepositorySessionFactory(RepositorySessionFactory repositorySessionFactory) |
public DefaultRepositoryStatisticsManager()
public boolean hasStatistics(String repositoryId) throws MetadataRepositoryException
hasStatistics
in interface RepositoryStatisticsManager
MetadataRepositoryException
public RepositoryStatistics getLastStatistics(String repositoryId) throws MetadataRepositoryException
getLastStatistics
in interface RepositoryStatisticsManager
MetadataRepositoryException
public void addStatisticsAfterScan(String repositoryId, Date startTime, Date endTime, long totalFiles, long newFiles) throws MetadataRepositoryException
addStatisticsAfterScan
in interface RepositoryStatisticsManager
MetadataRepositoryException
public void deleteStatistics(String repositoryId) throws MetadataRepositoryException
deleteStatistics
in interface RepositoryStatisticsManager
MetadataRepositoryException
public List<RepositoryStatistics> getStatisticsInRange(String repositoryId, Date startTime, Date endTime) throws MetadataRepositoryException
getStatisticsInRange
in interface RepositoryStatisticsManager
MetadataRepositoryException
public RepositorySessionFactory getRepositorySessionFactory()
public void setRepositorySessionFactory(RepositorySessionFactory repositorySessionFactory)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.