com.atlassian.jira.index.request.ReindexRequestManager |
Known Indirect Subclasses |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Used for persistence and control of reindex requests.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clear any pending requests.
| |||||||||||
Finds any active or running requests from inactive nodes in the cluster and transitions them
to failed.
| |||||||||||
Finds any active or running requests from the specified node in the cluster and transitions them to failed.
| |||||||||||
Retrieves all
pending reindex requests, in order
from oldest to newest. | |||||||||||
Retrieves the progress of some requests.
| |||||||||||
Checks if any ReindexRequests are waiting to be processed.
| |||||||||||
Checks if any ReindexRequests of any type are waiting to be processed.
| |||||||||||
Process any outstanding reindex requests.
| |||||||||||
Requests a reindex.
| |||||||||||
Transitions the status of reindex requests.
| |||||||||||
Transitions the status of a reindex request.
|
Clear any pending requests.
Finds any active or running requests from inactive nodes in the cluster and transitions them to failed. Use this to clean up any tasks from nodes that were running on nodes that were killed.
Finds any active or running requests from the specified node in the cluster and transitions them to failed.
nodeId | the ID of the cluster node, or null if not clustered. |
---|
Retrieves all pending
reindex requests, in order
from oldest to newest.
reindexRequestTypes | Types of requests to check for. |
---|
Retrieves the progress of some requests.
requestIds | the set of reindex request IDs to look up. |
---|
Checks if any ReindexRequests are waiting to be processed.
reindexRequestTypes | Types of requests to check for. |
---|
Checks if any ReindexRequests of any type are waiting to be processed.
Process any outstanding reindex requests.
waitForCompletion | If true this method will not return until the reindexing is complete, otherwise it will return when the reindex task is submitted, |
---|---|
reindexRequestTypes | Types of requests to process either ReindexRequestType |
runInBackground | If true the reindex should be a background reindex otherwise a foreground stop the world reindex |
Requests a reindex.
type | whether reindex is immediate or delayed. |
---|---|
affectedIndexes | the indexes to regenerate. |
entityTypes | the entity types whose indexes are to be regenerated. |
Transitions the status of reindex requests.
requests | the requests. |
---|---|
newStatus | the new status to transition to. |
Transitions the status of a reindex request.
request | the request. |
---|---|
newStatus | the new status to transition to. |