public class ProjectReindexServiceImpl extends Object implements ProjectReindexService
Constructor and Description |
---|
ProjectReindexServiceImpl(JiraAuthenticationContext authenticationContext,
TaskManager taskManager,
IssueIndexer issueIndexer,
ReplicatedIndexManager replicatedIndexManager,
OfBizDelegator ofBizDelegator,
IssueBatcherFactory issueBatcherFactory,
SearchProvider searchProvider,
IssueManager issueManager,
com.atlassian.event.api.EventPublisher eventPublisher,
I18nHelper.BeanFactory i18nBeanFactory,
ClusterManager clusterManager,
com.atlassian.audit.api.AuditService auditService,
ProjectEventHandler projectEventHandler) |
Modifier and Type | Method and Description |
---|---|
String |
getText(String key,
String parameter) |
boolean |
isReindexPossible(Project project) |
String |
reindex(Project project) |
String |
reindex(Project project,
boolean shouldReplicate) |
public ProjectReindexServiceImpl(JiraAuthenticationContext authenticationContext, TaskManager taskManager, IssueIndexer issueIndexer, ReplicatedIndexManager replicatedIndexManager, OfBizDelegator ofBizDelegator, IssueBatcherFactory issueBatcherFactory, SearchProvider searchProvider, IssueManager issueManager, com.atlassian.event.api.EventPublisher eventPublisher, I18nHelper.BeanFactory i18nBeanFactory, ClusterManager clusterManager, com.atlassian.audit.api.AuditService auditService, ProjectEventHandler projectEventHandler)
public String reindex(Project project)
reindex
in interface ProjectReindexService
project
- the project needs to be re-indexedpublic String reindex(Project project, boolean shouldReplicate)
reindex
in interface ProjectReindexService
project
- the project needs to be re-indexedshouldReplicate
- whether or not the index changes should be replicated to the other nodes in the cluster.public boolean isReindexPossible(Project project)
isReindexPossible
in interface ProjectReindexService
Copyright © 2002-2020 Atlassian. All Rights Reserved.