public class ReindexResource extends Object
Constructor and Description |
---|
ReindexResource(IndexLifecycleManager indexLifecycleManager,
TaskManager taskManager,
JiraAuthenticationContext jiraAuthenticationContext,
PermissionManager permissionManager,
JiraBaseUrls jiraBaseUrls,
I18nHelper.BeanFactory i18nBeanFactory,
IssueIndexingService issueIndexingService,
com.atlassian.core.util.Clock clock,
IssueFinder issueFinder,
JohnsonProvider johnsonProvider) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getReindexInfo(long taskId)
Returns information on the system reindexes.
|
javax.ws.rs.core.Response |
getReindexProgress(long taskId)
Returns information on the system reindexes.
|
javax.ws.rs.core.Response |
reindex(String type,
boolean indexComments,
boolean indexChangeHistory,
boolean indexWorklogs)
Kicks off a reindex.
|
javax.ws.rs.core.Response |
reindexIssues(List<String> issueIds,
boolean indexComments,
boolean indexChangeHistory,
boolean indexWorklogs)
Reindexes one or more individual issues.
|
public ReindexResource(@Qualifier(value="indexLifecycleManager") IndexLifecycleManager indexLifecycleManager, TaskManager taskManager, JiraAuthenticationContext jiraAuthenticationContext, PermissionManager permissionManager, JiraBaseUrls jiraBaseUrls, I18nHelper.BeanFactory i18nBeanFactory, IssueIndexingService issueIndexingService, com.atlassian.core.util.Clock clock, IssueFinder issueFinder, JohnsonProvider johnsonProvider)
public javax.ws.rs.core.Response reindexIssues(List<String> issueIds, boolean indexComments, boolean indexChangeHistory, boolean indexWorklogs)
Use either explicitly specified issue IDs or a JQL query to select issues to reindex.
issueIds
- the IDs or keys of one or more issues to reindex.indexComments
- Indicates that comments should also be reindexed.indexChangeHistory
- Indicates that changeHistory should also be reindexed.indexWorklogs
- Indicates that changeHistory should also be reindexed.public javax.ws.rs.core.Response reindex(String type, boolean indexComments, boolean indexChangeHistory, boolean indexWorklogs)
type
- Case insensitive String indicating type of reindex. If omitted, then defaults to BACKGROUND_PREFERREDindexComments
- Indicates that comments should also be reindexed. Not relevant for foreground reindex, where comments are always reindexed.indexChangeHistory
- Indicates that changeHistory should also be reindexed. Not relevant for foreground reindex, where changeHistory is always reindexed.indexWorklogs
- Indicates that changeHistory should also be reindexed. Not relevant for foreground reindex, where changeHistory is always reindexed.public javax.ws.rs.core.Response getReindexInfo(long taskId)
taskId
- the id of an indexing task you wish to obtain details on. If omitted, then defaults to the standard behaviour and
returns information on the active reindex task, or the last task to run if no reindex is taking place. . If there is no
reindexing task with that id then a 404 is returned.public javax.ws.rs.core.Response getReindexProgress(long taskId)
taskId
- the id of an indexing task you wish to obtain details on. If omitted, then defaults to the standard behaviour and
returns information on the active reindex task, or the last task to run if no reindex is taking place. . If there is no
reindexing task with that id then a 404 is returned.Copyright © 2002-2015 Atlassian. All Rights Reserved.