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 issues in the repliccated index.
void reindexIssues(IssuesIterable issuesIterable)
Reindexes the set of provided issues in the repliccated index.
void reindexProject(Project project)
[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 {@Link Issue}s to mark as deleted.

public void deIndexSharedEntity (SharedEntity entity)

Deindexes the shared entity in the replicated index.

Parameters
entity the {@Link SharedEntity} to be removed

public void indexSharedEntity (SharedEntity entity)

Reindexes the shared entity in the replicated index.

Parameters
entity the {@Link 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 issues in the repliccated index.

Parameters
comments A collection of {@Link Comment} to reindex

public void reindexIssues (IssuesIterable issuesIterable)

Reindexes the set of provided issues in the repliccated index.

Parameters
issuesIterable an {@Link IssuesIterable} that iterates obver the issues to be reindexed

public void reindexProject (Project project)