|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexLifecycleManager
Manage an index lifecycle.
Nested Class Summary | |
---|---|
static class |
IndexLifecycleManager.Composite
Convenience class for managing known IndexManagers and calling them all. |
Method Summary | |
---|---|
long |
activate(String indexPath,
Context context)
Activates search indexes. |
void |
deactivate()
De-activates indexing (as happens from the admin page) and removes index directories. |
Collection |
getAllIndexPaths()
|
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()
|
Method Detail |
---|
long reIndexAll(Context context) throws IndexException
context
- used to report progress back to the user or to the logs. Must not be null.
IndexException
long optimize() throws IndexException
IndexException
- if the indexes are seriously in troublevoid shutdown()
long activate(String indexPath, Context context) throws Exception
indexPath
- Root path to the search index.context
- used to report progress back to the user or to the logs. Must not be null.
Exception
void deactivate() throws Exception
Exception
boolean isIndexingEnabled()
Collection 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 |