Class IndexingControl
java.lang.Object
com.atlassian.jira.testkit.client.RestApiClient<IndexingControl>
com.atlassian.jira.testkit.client.BackdoorControl<IndexingControl>
com.atlassian.jira.functest.framework.backdoor.BackdoorControl<IndexingControl>
com.atlassian.jira.functest.framework.backdoor.IndexingControl
Backdoor control for indexing.
- Since:
- v5.2
-
Nested Class Summary
Nested ClassesNested 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, rootPathFields inherited from class com.atlassian.jira.testkit.client.RestApiClient
REST_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoiddeleteIndexDirectory(boolean issues, boolean comments, boolean worklogs, boolean history) intgetIndexingTaskProgress(String taskId) getProjectIndexingProgress(Long projectId) voidindexDummyIssue(long id, long projectId, String issueType, String issueKey, String summary, String desc) booleanbooleanisReindexTaskSuccessful(String taskId) makeReindexRequest(ReindexRequestType type, String query, SharedEntityType... sharedEntityTypes) voidPause the index repair service running in background - Lucene specificvoidPause the index replay service running in background - OpenSearch specificvoidPause the scheduled reindexvoidrefresh()voidvoidreindexProject(Long projectId) voidstartInBackground(IssueIndexingParams issueIndexingParams) voidStart the index repair service running in background - Lucene specificvoidStart the index replay service running in background - OpenSearch specificvoidStart the scheduled reindexInitiate a stop-the-world foreground re-indexvoidtemporaryIndex(String issueKey) Methods inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
createResourceMethods inherited from class com.atlassian.jira.testkit.client.BackdoorControl
createResourceForPath, createResourceForPath, get, getRestModulePathMethods 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
-
Constructor Details
-
IndexingControl
-
-
Method Details
-
startInBackground
-
startInBackground
@Nonnull public IndexingControl.IndexingProgress startInBackground(IssueIndexingParams issueIndexingParams) -
startStopTheWorldReIndex
Initiate a stop-the-world foreground re-index- Returns:
- a progress monitor
-
isReindexTaskSuccessful
-
getIndexingTaskProgress
-
getInBackgroundProgress
-
getProjectIndexingProgress
-
isIndexConsistent
public boolean isIndexConsistent() -
isIndexUpdatedFieldConsistent
public boolean isIndexUpdatedFieldConsistent() -
deleteIndex
public void deleteIndex() -
deleteIndexDirectory
public void deleteIndexDirectory(boolean issues, boolean comments, boolean worklogs, boolean history) -
deindex
-
indexDummyIssue
-
temporaryIndex
-
reindexAll
public void reindexAll() -
reindexProject
-
clearPendingReindexRequests
-
callPeriodicStats
public void callPeriodicStats() -
startScheduledReindex
public void startScheduledReindex()Start the scheduled reindex -
pauseScheduledReindex
public void pauseScheduledReindex()Pause the scheduled reindex -
startIndexRepairService
public void startIndexRepairService()Start the index repair service running in background - Lucene specific -
pauseIndexRepairService
public void pauseIndexRepairService()Pause the index repair service running in background - Lucene specific -
startOpenSearchReplayService
public void startOpenSearchReplayService()Start the index replay service running in background - OpenSearch specific -
pauseOpenSearchReplayService
public void pauseOpenSearchReplayService()Pause the index replay service running in background - OpenSearch specific -
replayIndex
public void replayIndex() -
refresh
public void refresh()
-