public class DelayedReindexResource extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
DelayedReindexResource.DelayedReindexResourceConfig |
static class |
DelayedReindexResource.LoadAndReindexTaskResponse |
Modifier | Constructor and Description |
---|---|
|
DelayedReindexResource(IssueManager issueManager,
CustomFieldManager customFieldManager,
IssueIndexingService issueIndexingService,
BarrierFactory barrierFactory) |
protected |
DelayedReindexResource(IssueManager issueManager,
CustomFieldManager customFieldManager,
IssueIndexingService issueIndexingService,
BarrierFactory barrierFactory,
DelayedReindexResource.DelayedReindexResourceConfig config) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
cleanHistory()
Cleans up the history of the tasks submitted by
loadAndReindex(java.lang.String, java.lang.String) . |
javax.ws.rs.core.Response |
getTask(int taskId)
Return the short state representation of the task submitted by
loadAndReindex(java.lang.String, java.lang.String) . |
javax.ws.rs.core.Response |
loadAndReindex(String issueKey,
String reindexBarrier)
Submits issue to the load and reindex.
|
public DelayedReindexResource(IssueManager issueManager, CustomFieldManager customFieldManager, IssueIndexingService issueIndexingService, BarrierFactory barrierFactory)
protected DelayedReindexResource(IssueManager issueManager, CustomFieldManager customFieldManager, IssueIndexingService issueIndexingService, BarrierFactory barrierFactory, DelayedReindexResource.DelayedReindexResourceConfig config)
public javax.ws.rs.core.Response loadAndReindex(String issueKey, String reindexBarrier)
issueKey
- the key of the issue to load and then reindex.reindexBarrier
- the name of the barrier on which we should wait before reindex.Integer
representing the task ID. The task is already started and
should be waiting on the reindex barrier, unless issue load failed.public javax.ws.rs.core.Response getTask(int taskId)
loadAndReindex(java.lang.String, java.lang.String)
.taskId
- the id of the task to check the state for. This is the value returned by calling
loadAndReindex(java.lang.String, java.lang.String)
DelayedReindexResource.LoadAndReindexTaskResponse
representing task statepublic javax.ws.rs.core.Response cleanHistory()
loadAndReindex(java.lang.String, java.lang.String)
. Please note that
the pending tasks will be removed as well.Copyright © 2002-2024 Atlassian. All Rights Reserved.