Class ArchivedStatistics
java.lang.Object
com.atlassian.jira.project.archiving.ArchivedStatistics
- All Implemented Interfaces:
InitializingComponent
This class is not ZDU-friendly. Here's the list of what doesn't work in ZDU:
- REST endpoints
- index/summary will show a wrong number of archived issues
- archiving/count will show a wrong count
- archiving/browse will show a wrong total
IndexManagerBase.reIndexAll()will write a wrong number to audit and analytics
-
Constructor Summary
ConstructorsConstructorDescriptionArchivedStatistics(com.atlassian.cache.CacheManager cacheManager, ProjectManager projectManager, IssueManager issueManager, QueryDslAccessor queryDslAccessor) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after all the beans are constructed and the ApplicationContext is fully populated.intNumber of issues set as archived in DB.intNumber of issues in all archived projectsintTotal number of issues archived with projects and individually, accounting their intersectionvoidDrops existing archived statistics cache
-
Constructor Details
-
ArchivedStatistics
public ArchivedStatistics(com.atlassian.cache.CacheManager cacheManager, ProjectManager projectManager, IssueManager issueManager, QueryDslAccessor queryDslAccessor)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponentCalled after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
afterInstantiationin interfaceInitializingComponent- Throws:
Exception
-
invalidate
public void invalidate()Drops existing archived statistics cache -
getTotalArchivedIssuesCount
public int getTotalArchivedIssuesCount()Total number of issues archived with projects and individually, accounting their intersection- Returns:
- number of archived issues
-
getIssuesInArchivedProjectsCount
public int getIssuesInArchivedProjectsCount()Number of issues in all archived projects- Returns:
- number of issues in all archived projects
-
getArchivedIssuesCount
public int getArchivedIssuesCount()Number of issues set as archived in DB. It are issues affected by issue archiving. Value also considers number of issues, that were archived independently, and then affected by project archiving- Returns:
- number of issues marked as archived in DB
-