public class DelayedIndexingControl extends com.atlassian.jira.testkit.client.BackdoorControl<DelayedIndexingControl>
Modifier and Type | Class and Description |
---|---|
static class |
DelayedIndexingControl.LoadAndReindexTaskResponse |
Constructor and Description |
---|
DelayedIndexingControl(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
void |
cleanTasksHistory()
Cleans up the history of the tasks submitted by
loadAndReindexIssue(java.lang.String, java.lang.String) . |
DelayedIndexingControl.LoadAndReindexTaskResponse |
getLoadAndReindexTask(int taskId)
Return the short state representation of the task submitted by
loadAndReindexIssue(java.lang.String, java.lang.String) . |
int |
loadAndReindexIssue(String issueKey,
String reindexBarrierName)
Submits and perform the load of the issue followed by the issue reindex operations.
|
createResource, createResourceForPath, createResourceForPath, get, getRestModulePath
anonymous, cleanUp, client, createResourceGadget, createResourceInternal, errorResponse, expanded, getEnvironmentData, loginAs, loginAs, percentEncode, registerResponse, resourceRoot, setOf, toResponse, toResponse, toResponse
public DelayedIndexingControl(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData)
public int loadAndReindexIssue(String issueKey, String reindexBarrierName)
issueKey
- key of the issue to load and then reindexreindexBarrierName
- name of the barrier on which the reindex should waitpublic DelayedIndexingControl.LoadAndReindexTaskResponse getLoadAndReindexTask(int taskId)
loadAndReindexIssue(java.lang.String, java.lang.String)
.taskId
- the id of the task to check the state for. This is the value returned by calling
loadAndReindexIssue(java.lang.String, java.lang.String)
public void cleanTasksHistory()
loadAndReindexIssue(java.lang.String, java.lang.String)
. Please note
that the pending tasks will be removed as well.Copyright © 2002-2024 Atlassian. All Rights Reserved.