|
||||||||||
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 |
isIndexAvailable()
Whether this index is available. |
boolean |
isIndexConsistent()
|
boolean |
isIndexingEnabled()
Deprecated. since v6.3.3 Use isIndexAvailable() |
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 Shutdown
long 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()
isIndexAvailable()
boolean isIndexAvailable()
boolean isIndexConsistent()
false
.Collection<String> getAllIndexPaths()
int size()
size
in interface Sized
reIndexAll(Context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |