public class DefaultReplicatedIndexManager extends Object implements ReplicatedIndexManager
Constructor and Description |
---|
DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore,
NodeIndexCounterStore nodeIndexCounterStore,
ClusterInfo clusterInfo,
TaskManager taskManager) |
Modifier and Type | Method and Description |
---|---|
void |
deIndexIssuesById(Set<? extends WithId> issuesToDelete)
Removes the specified issues from the replicated index (we only need the ids for deindexing).
|
void |
deIndexProject(Project project) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deIndexIssues
public DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore, NodeIndexCounterStore nodeIndexCounterStore, ClusterInfo clusterInfo, 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 deIndexIssuesById(Set<? extends WithId> issuesToDelete)
deIndexIssuesById
in interface ReplicatedIndexManager
issuesToDelete
- WithId
s for the Issues to mark as deleted.public void reindexProject(Project project)
reindexProject
in interface ReplicatedIndexManager
public void deIndexProject(Project project)
deIndexProject
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-2020 Atlassian. All Rights Reserved.