|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.index.IndexLifecycleManager.Composite
public static class IndexLifecycleManager.Composite
Convenience class for managing known IndexManagers and calling them all.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.util.index.IndexLifecycleManager |
---|
IndexLifecycleManager.Composite |
Constructor Summary | |
---|---|
IndexLifecycleManager.Composite(IssueIndexManager issueIndexManager,
SharedEntityIndexManager sharedEntityIndexManager)
|
Method Summary | |
---|---|
long |
activate(Context context)
Activates search indexes. |
void |
deactivate()
De-activates indexing (as happens from the admin page) and removes index directories. |
java.util.Collection<java.lang.String> |
getAllIndexPaths()
|
boolean |
isEmpty()
|
boolean |
isIndexingEnabled()
|
long |
optimize()
Optimize the underlying indexes. |
long |
reIndexAll(Context context)
Reindex everything. |
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 IndexLifecycleManager.Composite(IssueIndexManager issueIndexManager, SharedEntityIndexManager sharedEntityIndexManager)
Method Detail |
---|
public long optimize() throws IndexException
IndexLifecycleManager
optimize
in interface IndexLifecycleManager
IndexException
- if the indexes are seriously in troublepublic long reIndexAll(Context context) throws IndexException
IndexLifecycleManager
reIndexAll
in interface IndexLifecycleManager
context
- used to report progress back to the user or to the logs. Must not be null.
IndexException
public void shutdown()
IndexLifecycleManager
shutdown
in interface IndexLifecycleManager
shutdown
in interface Shutdown
public long activate(Context context)
IndexLifecycleManager
activate
in interface IndexLifecycleManager
context
- used to report progress back to the user or to the logs. Must not be null.
public void deactivate()
IndexLifecycleManager
deactivate
in interface IndexLifecycleManager
public boolean isIndexingEnabled()
isIndexingEnabled
in interface IndexLifecycleManager
public java.util.Collection<java.lang.String> getAllIndexPaths()
getAllIndexPaths
in interface IndexLifecycleManager
public int size()
size
in interface Sized
size
in interface IndexLifecycleManager
IndexLifecycleManager.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 |