Package com.atlassian.jira.dev.backdoor
Class IndexingBackdoor
java.lang.Object
com.atlassian.jira.dev.backdoor.IndexingBackdoor
@Consumes("application/json")
@Produces("application/json")
@Path("/indexing")
public class IndexingBackdoor
extends Object
Backdoor for starting/stopping/querying indexing.
- Since:
- v5.2
-
Constructor Summary
ConstructorsConstructorDescriptionIndexingBackdoor(IssueIndexer issueIndexer, TaskManager taskManager, I18nHelper.BeanFactory i18nFactory, JiraAuthenticationContext jiraAuthenticationContext, IssueIndexManager issueIndexManager, ProjectManager projectManager, SearchService searchService, IssueManager issueManager, IndexPathManager indexPathManager, UserManager userManager, ReindexRequestManager reindexRequestManager, ClusterManager clusterManager, ProjectReindexService projectReindexService) -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanvoidvoiddeleteIndexDirectory(boolean issues, boolean comments, boolean worklogs, boolean history) longgetIndexingProgress(Long projectId) booleanindexDummyIssue(String id, String issueType, String projectId, String key, String summary, String description) booleanbooleanisIndexingProject(Long projectId) booleanisIndexingProjectStarted(Long projectId) booleanbooleanbooleanjavax.ws.rs.core.ResponsemakeReindexRequest(ReindexRequestType type, List<String> sharedEntityTypes) javax.ws.rs.core.ResponsePause the index repair service running in backgroundjavax.ws.rs.core.ResponsePause the scheduled reindex servicevoidjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsereindexProject(String projectId) javax.ws.rs.core.ResponseStart the index repair service running in backgroundjavax.ws.rs.core.ResponseStart the scheduled reindex servicetriggerBackgroundIndexing(boolean reindexComments, boolean reindexChangeHistory, boolean reindexWorklog, boolean reindexIssues) void
-
Constructor Details
-
IndexingBackdoor
@Inject public IndexingBackdoor(IssueIndexer issueIndexer, TaskManager taskManager, I18nHelper.BeanFactory i18nFactory, JiraAuthenticationContext jiraAuthenticationContext, IssueIndexManager issueIndexManager, ProjectManager projectManager, SearchService searchService, IssueManager issueManager, IndexPathManager indexPathManager, UserManager userManager, ReindexRequestManager reindexRequestManager, ClusterManager clusterManager, ProjectReindexService projectReindexService)
-
-
Method Details
-
triggerBackgroundIndexing
@POST @Path("background") public Long triggerBackgroundIndexing(@QueryParam("comments") boolean reindexComments, @QueryParam("changeHistory") boolean reindexChangeHistory, @QueryParam("worklogs") boolean reindexWorklog, @QueryParam("issues") @DefaultValue("true") boolean reindexIssues) -
triggerStopTheWorldIndexing
@POST @Path("stoptheworld") public void triggerStopTheWorldIndexing() -
deleteIndex
@POST @Path("deleteIndex") public void deleteIndex() -
deleteIndexDirectory
@POST @Path("deleteIndexDirectory") public void deleteIndexDirectory(@QueryParam("issues") boolean issues, @QueryParam("comments") boolean comments, @QueryParam("worklogs") boolean worklogs, @QueryParam("history") boolean history) -
deindex
-
indexDummyIssue
-
reindexAll
@POST @Path("reindexAll") public javax.ws.rs.core.Response reindexAll() -
reindexProject
@POST @Path("reindexProject/{projectId}") public javax.ws.rs.core.Response reindexProject(@PathParam("projectId") String projectId) -
pauseScheduledReindex
@POST @Path("scheduledReindex/pause") public javax.ws.rs.core.Response pauseScheduledReindex()Pause the scheduled reindex service -
startScheduledReindex
@POST @Path("scheduledReindex/start") public javax.ws.rs.core.Response startScheduledReindex()Start the scheduled reindex service -
pauseIndexRepairService
@POST @Path("repairService/pause") public javax.ws.rs.core.Response pauseIndexRepairService()Pause the index repair service running in background -
startIndexRepairService
@POST @Path("repairService/start") public javax.ws.rs.core.Response startIndexRepairService()Start the index repair service running in background -
makeReindexRequest
@GET @Path("makeReindexRequest") public javax.ws.rs.core.Response makeReindexRequest(@QueryParam("type") ReindexRequestType type, @QueryParam("sharedEntityType") List<String> sharedEntityTypes) -
isIndexingRunning
@GET public boolean isIndexingRunning() -
isIndexingStarted
@GET @Path("started") public boolean isIndexingStarted() -
isIndexingProject
-
getIndexingProgress
@GET @Path("project/progress") public long getIndexingProgress(@QueryParam("projectId") Long projectId) -
isIndexingProjectStarted
@GET @Path("project/started") public boolean isIndexingProjectStarted(@QueryParam("projectId") Long projectId) -
isIndexConsistent
@GET @Path("consistent") public boolean isIndexConsistent() -
isIndexUpdatedFieldConsistent
@GET @Path("consistent/updated") public boolean isIndexUpdatedFieldConsistent() throws SearchException- Throws:
SearchException
-
clearPendingReindexRequests
@GET @Path("clearPendingReindexRequests") public long clearPendingReindexRequests() -
periodicStats
@POST @Path("periodicStats") public void periodicStats()
-