|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface IndexLifecycleManager
Manage an index lifecycle.
| Method Summary | |
|---|---|
long |
activate(Context context)
Activates search indexes. |
long |
activate(Context context,
boolean reindex)
Activates search indexes. |
void |
deactivate()
De-activates indexing (as happens from the admin page) and removes index directories. |
Collection<String> |
getAllIndexPaths()
|
boolean |
isIndexConsistent()
|
boolean |
isIndexingEnabled()
|
long |
optimize()
Optimize the underlying indexes. |
long |
reIndexAll(Context context)
Reindex everything. |
long |
reIndexAllIssuesInBackground(Context context)
Reindex everything, but don't stop the world Comments and change history will not be reindexed. |
long |
reIndexAllIssuesInBackground(Context context,
boolean reIndexComments,
boolean reIndexChangeHistory)
Reindex everything, but don't stop the world |
void |
shutdown()
Shuts down the indexing manager and closes its resources (if any). |
int |
size()
|
| Methods inherited from interface com.atlassian.jira.util.collect.Sized |
|---|
isEmpty |
| Method Detail |
|---|
long reIndexAll(Context context)
context - used to report progress back to the user or to the logs. Must not be null.
long reIndexAllIssuesInBackground(Context context)
context - used to report progress back to the user or to the logs. Must not be null.
long reIndexAllIssuesInBackground(Context context,
boolean reIndexComments,
boolean reIndexChangeHistory)
context - used to report progress back to the user or to the logs. Must not be null.reIndexComments - Also reindex all the issue comments.reIndexChangeHistory - Also reindex the issue change history.
long optimize()
IndexException - if the indexes are seriously in troublevoid shutdown()
shutdown in interface Shutdownlong activate(Context context)
context - used to report progress back to the user or to the logs. Must not be null.
long activate(Context context,
boolean reindex)
context - used to report progress back to the user or to the logs. Must not be null.reindex - reindex after activation.
void deactivate()
boolean isIndexingEnabled()
boolean isIndexConsistent()
false.Collection<String> getAllIndexPaths()
int size()
size in interface SizedreIndexAll(Context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||