|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.util.index.CompositeIndexLifecycleManager
public class CompositeIndexLifecycleManager
Convenience class for managing known IndexManagers and calling them all.
| Constructor Summary | |
|---|---|
CompositeIndexLifecycleManager(IssueIndexManager issueIndexManager,
SharedEntityIndexManager sharedEntityIndexManager,
IndexingCounterManager indexingCounterManager)
|
|
| 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 |
isEmpty()
|
boolean |
isIndexAvailable()
Whether this index is available. |
boolean |
isIndexConsistent()
|
boolean |
isIndexingEnabled()
|
long |
optimize()
Optimize the underlying indexes. |
long |
reIndexAll(Context context)
Reindex everything. |
long |
reIndexAll(Context context,
IssueIndexingParams issueIndexingParams)
Reindex indexes defined by the IssueIndexingParams. |
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 |
long |
reIndexIssuesInBackground(Context context,
IssueIndexingParams issueIndexingParams)
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeIndexLifecycleManager(IssueIndexManager issueIndexManager,
SharedEntityIndexManager sharedEntityIndexManager,
IndexingCounterManager indexingCounterManager)
| Method Detail |
|---|
public long optimize()
IndexLifecycleManager
optimize in interface IndexLifecycleManagerpublic long reIndexAll(Context context)
IndexLifecycleManager
reIndexAll in interface IndexLifecycleManagercontext - used to report progress back to the user or to the logs. Must not be null.
public long reIndexAll(Context context,
IssueIndexingParams issueIndexingParams)
IndexLifecycleManagerIssueIndexingParams.
reIndexAll in interface IndexLifecycleManagercontext - used to report progress back to the user or to the logs. Must not be null.issueIndexingParams - indexes to reindex.
public long reIndexAllIssuesInBackground(Context context)
IndexLifecycleManager
reIndexAllIssuesInBackground in interface IndexLifecycleManagercontext - used to report progress back to the user or to the logs. Must not be null.
public long reIndexAllIssuesInBackground(Context context,
boolean reIndexComments,
boolean reIndexChangeHistory)
IndexLifecycleManager
reIndexAllIssuesInBackground in interface IndexLifecycleManagercontext - 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.
public long reIndexIssuesInBackground(Context context,
IssueIndexingParams issueIndexingParams)
IndexLifecycleManager
reIndexIssuesInBackground in interface IndexLifecycleManagercontext - used to report progress back to the user or to the logs. Must not be null.issueIndexingParams - determines witch related objects should be indexed together with issue.
public void shutdown()
IndexLifecycleManager
shutdown in interface IndexLifecycleManagershutdown in interface Shutdownpublic long activate(Context context)
IndexLifecycleManager
activate in interface IndexLifecycleManagercontext - used to report progress back to the user or to the logs. Must not be null.
public long activate(Context context,
boolean reindex)
IndexLifecycleManager
activate in interface IndexLifecycleManagercontext - used to report progress back to the user or to the logs. Must not be null.reindex - reindex after activation.
public void deactivate()
IndexLifecycleManager
deactivate in interface IndexLifecycleManagerpublic boolean isIndexingEnabled()
isIndexingEnabled in interface IndexLifecycleManagerpublic boolean isIndexAvailable()
IndexLifecycleManager
isIndexAvailable in interface IndexLifecycleManagerpublic boolean isIndexConsistent()
isIndexConsistent in interface IndexLifecycleManagerfalse.public Collection<String> getAllIndexPaths()
getAllIndexPaths in interface IndexLifecycleManagerpublic int size()
size in interface Sizedsize in interface IndexLifecycleManagerIndexLifecycleManager.reIndexAll(Context)public boolean isEmpty()
isEmpty in interface Sized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||