Class Overview
Mock issue indexer that records calls indexing methods for verification.
Summary
Public Methods |
Index.Result
|
deindexIssues(EnclosedIterable<Issue> issues, Context context)
Delete any existing documents for the supplied issues.
|
void
|
deleteIndexes()
|
IndexSearcher
|
getChangeHistorySearcher()
|
IndexSearcher
|
getCommentSearcher()
|
List<String>
|
getIndexPaths()
|
String
|
getIndexRootPath()
|
IndexSearcher
|
getIssueSearcher()
|
Index.Result
|
indexIssues(EnclosedIterable<Issue> issues, Context context)
Add documents for the supplied issues.
|
Index.Result
|
indexIssuesBatchMode(EnclosedIterable<Issue> issues, Context context)
Index the given issues, use whatever is in your arsenal to do it as FAST as possible.
|
Index.Result
|
optimize()
|
Index.Result
|
reindexComments(Collection<Comment> comments, Context context)
Reindex a collection of issue comments.
|
Index.Result
|
reindexIssues(EnclosedIterable<Issue> issues, Context context, boolean reIndexComments, boolean reIndexChangeHistory, boolean conditionalUpdate)
Re-index the given issues, delete any existing documents and add new ones.
|
void
|
shutdown()
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.jira.issue.index.IssueIndexer
Index.Result
|
deindexIssues(EnclosedIterable<Issue> issues, Context context)
Delete any existing documents for the supplied issues.
|
void
|
deleteIndexes()
|
IndexSearcher
|
getChangeHistorySearcher()
|
IndexSearcher
|
getCommentSearcher()
|
List<String>
|
getIndexPaths()
|
String
|
getIndexRootPath()
|
IndexSearcher
|
getIssueSearcher()
|
Index.Result
|
indexIssues(EnclosedIterable<Issue> issues, Context context)
Add documents for the supplied issues.
|
Index.Result
|
indexIssuesBatchMode(EnclosedIterable<Issue> issues, Context context)
Index the given issues, use whatever is in your arsenal to do it as FAST as possible.
|
Index.Result
|
optimize()
|
Index.Result
|
reindexComments(Collection<Comment> comments, Context context)
Reindex a collection of issue comments.
|
Index.Result
|
reindexIssues(EnclosedIterable<Issue> issues, Context context, boolean reIndexComments, boolean reIndexChangeHistory, boolean conditionalUpdate)
Re-index the given issues, delete any existing documents and add new ones.
|
void
|
shutdown()
|
|
Fields
public
final
int
indexWorkTime
public
final
int
optimizationWorkTime
Public Constructors
public
MockIssueIndexer
()
public
MockIssueIndexer
(int indexSleepTime, int optimizationSleepTime)
Public Methods
Delete any existing documents for the supplied issues.
Parameters
issues
| An iterable of issues to index. |
context
| for showing the user the current status.
|
public
void
deleteIndexes
()
public
String
getIndexRootPath
()
Add documents for the supplied issues.
Parameters
issues
| An iterable of issues to index. |
context
| for showing the user the current status.
|
Index the given issues, use whatever is in your arsenal to do it as FAST as possible.
Parameters
issues
| An iterable of issues to index. |
context
| for showing the user the current status.
|
Reindex a collection of issue comments.
Parameters
comments
| Comments to be reindexed. |
context
| for showing the user the current status.
|
public
Index.Result
reindexIssues
(EnclosedIterable<Issue> issues, Context context, boolean reIndexComments, boolean reIndexChangeHistory, boolean conditionalUpdate)
Re-index the given issues, delete any existing documents and add new ones.
Parameters
issues
| An iterable of issues to index. |
context
| for showing the user the current status. |
reIndexComments
| Set to true if you require issue comments to also be reindexed. |
reIndexChangeHistory
| Set to true if you require issue change history to also be reindexed. |
conditionalUpdate
| set to true to use conditional updates when writing to the index
|