Package com.atlassian.jira.index.ha
Class DefaultReplicatedIndexManager
java.lang.Object
com.atlassian.jira.index.ha.DefaultReplicatedIndexManager
- All Implemented Interfaces:
ReplicatedIndexManager
- Direct Known Subclasses:
OpenSearchReplicatedIndexManager
Manages the replicated index.
- Since:
- v6.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA contribution to the index backup, which writes metadata about the re-index -
Constructor Summary
ConstructorsConstructorDescriptionDefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore, TaskManager taskManager) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeIndexComment(WithIdAndVersion commentWithVersion) voiddeIndexIssue(WithIdAndVersion issueWithVersion) Removes the specified issues from the replicated index (we only need the ids for deindexing).voiddeIndexProject(Project project) voiddeIndexSharedEntity(SharedEntity entity) Deindexes the shared entity in the replicated index.voiddeIndexWorklog(WithIdAndVersion worklogWithVersion) protected OfBizReplicatedIndexOperationStorevoidindexSharedEntity(SharedEntity entity) Reindexes the shared entity in the replicated index.voidonReindexAllCompleted(ReindexAllCompletedEvent reindexAllCompletedEvent) voidonReindexAllStarted(ReindexAllStartedEvent reindexAllStartedEvent) voidreindexComments(Collection<? extends WithIdAndVersion> comments) Reindexes the set of provided comments in the replicated index.voidreindexIssues(Collection<? extends WithIdAndVersion> issues) Reindexes the set of provided issues in the replicated index.voidreindexProject(Project project) Notifies other nodes that they need to perform a project reindex.voidreindexWorklogs(Collection<? extends WithIdAndVersion> worklogs) Reindexes the set of provided worklogs in the replicated index.
-
Constructor Details
-
DefaultReplicatedIndexManager
public DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore, TaskManager taskManager)
-
-
Method Details
-
reindexIssues
Reindexes the set of provided issues in the replicated index.- Specified by:
reindexIssuesin interfaceReplicatedIndexManager- Parameters:
issues- anCollectionof issues to be reindexed
-
reindexComments
Reindexes the set of provided comments in the replicated index.- Specified by:
reindexCommentsin interfaceReplicatedIndexManager- Parameters:
comments- A collection ofWithIdAndVersionrepresenting comments to reindex
-
reindexWorklogs
Reindexes the set of provided worklogs in the replicated index.- Specified by:
reindexWorklogsin interfaceReplicatedIndexManager- Parameters:
worklogs- A collection ofWithIdAndVersionrepresenting worklogs to reindex
-
deIndexIssue
Removes the specified issues from the replicated index (we only need the ids for deindexing).- Specified by:
deIndexIssuein interfaceReplicatedIndexManager- Parameters:
issueWithVersion-WithIds for the Issues to mark as deleted.
-
deIndexComment
- Specified by:
deIndexCommentin interfaceReplicatedIndexManager
-
deIndexWorklog
- Specified by:
deIndexWorklogin interfaceReplicatedIndexManager
-
reindexProject
Notifies other nodes that they need to perform a project reindex.Unlike
deIndexProject(com.atlassian.jira.project.Project), this method does not create an index snapshot. This is because it is called as soon as project reindex is commenced on this node, without waiting until it's finished. Index snapshot is created inCallable.call().- Specified by:
reindexProjectin interfaceReplicatedIndexManager
-
deIndexProject
- Specified by:
deIndexProjectin interfaceReplicatedIndexManager
-
onReindexAllStarted
-
onReindexAllCompleted
-
getOfBizReplicatedIndexOperationStore
-