Class DelayedIndexingControl

java.lang.Object
com.atlassian.jira.testkit.client.RestApiClient<DelayedIndexingControl>
com.atlassian.jira.testkit.client.BackdoorControl<DelayedIndexingControl>
com.atlassian.jira.functest.framework.backdoor.BackdoorControl<DelayedIndexingControl>
com.atlassian.jira.functest.framework.backdoor.DelayedIndexingControl

public class DelayedIndexingControl extends BackdoorControl<DelayedIndexingControl>
Backdoor control for indexing blocked by a barrier, including full issue load first.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class com.atlassian.jira.testkit.client.RestApiClient

    com.atlassian.jira.testkit.client.RestApiClient.BackdoorLoggingFilter, com.atlassian.jira.testkit.client.RestApiClient.JsonMediaTypeFilter, com.atlassian.jira.testkit.client.RestApiClient.RestCall, com.atlassian.jira.testkit.client.RestApiClient.SessionlessConsistencyFilter
  • Field Summary

    Fields inherited from class com.atlassian.jira.testkit.client.BackdoorControl

    API_REST_PATH, API_REST_VERSION, DEFAULT_REST_PATH, logger, rootPath

    Fields inherited from class com.atlassian.jira.testkit.client.RestApiClient

    REST_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    DelayedIndexingControl(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cleans up the history of the tasks submitted by loadAndReindexIssue(java.lang.String, java.lang.String).
    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.

    Methods inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl

    createResource

    Methods inherited from class com.atlassian.jira.testkit.client.BackdoorControl

    createResourceForPath, createResourceForPath, get, getRestModulePath

    Methods inherited from class com.atlassian.jira.testkit.client.RestApiClient

    anonymous, authenticate, authoriseWithOAuth2, authoriseWithOAuth2, cleanUp, client, createResource, createResourceGadget, createResourceInternal, errorResponse, expanded, getCredentialsProvider, getEnvironmentData, loginAs, loginAs, registerResponse, resourceRoot, resourceRoot, setOf, toResponse, toResponse, toResponse, withCredentialsProvider

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DelayedIndexingControl

      public DelayedIndexingControl(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData)
  • Method Details

    • loadAndReindexIssue

      public int loadAndReindexIssue(String issueKey, String reindexBarrierName)
      Submits and perform the load of the issue followed by the issue reindex operations. The reindex is waiting on the barrier specified by the passed name. The function returns after loading the issue.
      Parameters:
      issueKey - key of the issue to load and then reindex
      reindexBarrierName - name of the barrier on which the reindex should wait
      Returns:
      id of the submitted task.
    • getLoadAndReindexTask

      public DelayedIndexingControl.LoadAndReindexTaskResponse getLoadAndReindexTask(int taskId)
      Return the short state representation of the task submitted by loadAndReindexIssue(java.lang.String, java.lang.String).
      Parameters:
      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)
      Returns:
      the bean representing current task state
    • cleanTasksHistory

      public void cleanTasksHistory()
      Cleans up the history of the tasks submitted by loadAndReindexIssue(java.lang.String, java.lang.String). Please note that the pending tasks will be removed as well.