public class

DefaultReplicatedIndexManager

extends Object
implements ReplicatedIndexManager
java.lang.Object
   ↳ com.atlassian.jira.index.ha.DefaultReplicatedIndexManager

Class Overview

Manages the replicated index.

Summary

Public Constructors
DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore, TaskManager taskManager)
Public Methods
void deIndexIssues(Set<Issue> issuesToDelete)
Removes the issues from the replicated index.
void deIndexSharedEntity(SharedEntity entity)
Deindexes the shared entity in the replicated index.
void indexSharedEntity(SharedEntity entity)
Reindexes the shared entity in the replicated index.
@EventListener void onReindexAllCompleted(ReindexAllCompletedEvent reindexAllCompletedEvent)
@EventListener void onReindexAllStarted(ReindexAllStartedEvent reindexAllStartedEvent)
void reindexComments(Collection<Comment> comments)
Reindexes the set of provided comments in the replicated index.
<T extends WithId> void reindexEntity(Collection<T> entities, AffectedIndex index)
Reindexes the set of provided entities in the replicated index.
void reindexIssues(IssuesIterable issuesIterable, IssueIndexingParams issueIndexingParams)
Reindexes the set of provided issues in the replicated index.
void reindexProject(Project project)
void reindexWorklogs(Collection<Worklog> worklogs)
Reindexes the set of provided worklogs in the replicated index.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.index.ha.ReplicatedIndexManager

Public Constructors

public DefaultReplicatedIndexManager (OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore, TaskManager taskManager)

Public Methods

public void deIndexIssues (Set<Issue> issuesToDelete)

Removes the issues from the replicated index.

Parameters
issuesToDelete the Issues to mark as deleted.

public void deIndexSharedEntity (SharedEntity entity)

Deindexes the shared entity in the replicated index.

Parameters
entity the SharedEntity to be removed

public void indexSharedEntity (SharedEntity entity)

Reindexes the shared entity in the replicated index.

Parameters
entity the SharedEntity to be reindexed

@EventListener public void onReindexAllCompleted (ReindexAllCompletedEvent reindexAllCompletedEvent)

@EventListener public void onReindexAllStarted (ReindexAllStartedEvent reindexAllStartedEvent)

public void reindexComments (Collection<Comment> comments)

Reindexes the set of provided comments in the replicated index.

Parameters
comments A collection of Comment to reindex

public void reindexEntity (Collection<T> entities, AffectedIndex index)

Reindexes the set of provided entities in the replicated index.

Parameters
entities A collection of entities implementing WithId to reindex

public void reindexIssues (IssuesIterable issuesIterable, IssueIndexingParams issueIndexingParams)

Reindexes the set of provided issues in the replicated index.

Parameters
issuesIterable an IssuesIterable that iterates obver the issues to be reindexed

public void reindexProject (Project project)

public void reindexWorklogs (Collection<Worklog> worklogs)

Reindexes the set of provided worklogs in the replicated index.

Parameters
worklogs A collection of Worklog to reindex