public class DefaultReplicatedIndexManager extends Object implements ReplicatedIndexManager
Constructor and Description |
---|
DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore,
TaskManager taskManager) |
Modifier and Type | Method and Description |
---|---|
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 comments in the replicated index.
|
<T extends WithId> |
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.
|
public DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore, TaskManager taskManager)
public void reindexIssues(@Nonnull IssuesIterable issuesIterable, @Nonnull IssueIndexingParams issueIndexingParams)
reindexIssues
in interface ReplicatedIndexManager
issuesIterable
- an IssuesIterable
that iterates obver the issues to be reindexedpublic void reindexComments(Collection<Comment> comments)
reindexComments
in interface ReplicatedIndexManager
comments
- A collection of Comment
to reindexpublic void reindexWorklogs(Collection<Worklog> worklogs)
reindexWorklogs
in interface ReplicatedIndexManager
worklogs
- A collection of Worklog
to reindexpublic <T extends WithId> void reindexEntity(Collection<T> entities, AffectedIndex index)
reindexEntity
in interface ReplicatedIndexManager
entities
- A collection of entities implementing WithId
to reindexpublic void deIndexIssues(Set<Issue> issuesToDelete)
deIndexIssues
in interface ReplicatedIndexManager
issuesToDelete
- the Issue
s to mark as deleted.public void reindexProject(Project project)
reindexProject
in interface ReplicatedIndexManager
public void indexSharedEntity(SharedEntity entity)
indexSharedEntity
in interface ReplicatedIndexManager
entity
- the SharedEntity
to be reindexedpublic void deIndexSharedEntity(SharedEntity entity)
deIndexSharedEntity
in interface ReplicatedIndexManager
entity
- the SharedEntity
to be removed@EventListener public void onReindexAllStarted(ReindexAllStartedEvent reindexAllStartedEvent)
@EventListener public void onReindexAllCompleted(ReindexAllCompletedEvent reindexAllCompletedEvent)
Copyright © 2002-2015 Atlassian. All Rights Reserved.