com.atlassian.jira.index.ha
Class DefaultReplicatedIndexManager

java.lang.Object
  extended by com.atlassian.jira.index.ha.DefaultReplicatedIndexManager
All Implemented Interfaces:
ReplicatedIndexManager

public class DefaultReplicatedIndexManager
extends Object
implements ReplicatedIndexManager

Manages the replicated index.

Since:
v6.1

Constructor Summary
DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore, TaskManager taskManager)
           
 
Method Summary
 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.
 void onReindexAllCompleted(ReindexAllCompletedEvent reindexAllCompletedEvent)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReplicatedIndexManager

public DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore,
                                     TaskManager taskManager)
Method Detail

reindexIssues

public void reindexIssues(@Nonnull
                          IssuesIterable issuesIterable)
Reindexes the set of provided issues in the repliccated index.

Specified by:
reindexIssues in interface ReplicatedIndexManager
Parameters:
issuesIterable - an that iterates obver the issues to be reindexed

reindexComments

public void reindexComments(Collection<Comment> comments)
Reindexes the set of provided issues in the repliccated index.

Specified by:
reindexComments in interface ReplicatedIndexManager
Parameters:
comments - A collection of to reindex

deIndexIssues

public void deIndexIssues(Set<Issue> issuesToDelete)
Removes the issues from the replicated index.

Specified by:
deIndexIssues in interface ReplicatedIndexManager
Parameters:
issuesToDelete - the s to mark as deleted.

reindexProject

public void reindexProject(Project project)
Specified by:
reindexProject in interface ReplicatedIndexManager

indexSharedEntity

public void indexSharedEntity(SharedEntity entity)
Reindexes the shared entity in the replicated index.

Specified by:
indexSharedEntity in interface ReplicatedIndexManager
Parameters:
entity - the to be reindexed

deIndexSharedEntity

public void deIndexSharedEntity(SharedEntity entity)
Deindexes the shared entity in the replicated index.

Specified by:
deIndexSharedEntity in interface ReplicatedIndexManager
Parameters:
entity - the to be removed

onReindexAllStarted

@EventListener
public void onReindexAllStarted(ReindexAllStartedEvent reindexAllStartedEvent)

onReindexAllCompleted

@EventListener
public void onReindexAllCompleted(ReindexAllCompletedEvent reindexAllCompletedEvent)


Copyright © 2002-2014 Atlassian. All Rights Reserved.