|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.index.MockIndexLifecycleManager
public class MockIndexLifecycleManager
Constructor Summary | |
---|---|
MockIndexLifecycleManager()
|
Method Summary | |
---|---|
long |
activate(Context ctx)
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 ctx)
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockIndexLifecycleManager()
Method Detail |
---|
public long activate(Context ctx)
IndexLifecycleManager
activate
in interface IndexLifecycleManager
ctx
- 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 IndexLifecycleManager
context
- 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 IndexLifecycleManager
public Collection<String> getAllIndexPaths()
getAllIndexPaths
in interface IndexLifecycleManager
public boolean isIndexingEnabled()
isIndexingEnabled
in interface IndexLifecycleManager
public boolean isIndexAvailable()
IndexLifecycleManager
isIndexAvailable
in interface IndexLifecycleManager
public long optimize()
IndexLifecycleManager
optimize
in interface IndexLifecycleManager
public long reIndexAll(Context ctx)
IndexLifecycleManager
reIndexAll
in interface IndexLifecycleManager
ctx
- used to report progress back to the user or to the logs. Must not be null.
public long reIndexAllIssuesInBackground(Context context)
IndexLifecycleManager
reIndexAllIssuesInBackground
in interface IndexLifecycleManager
context
- 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 IndexLifecycleManager
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.
public int size()
size
in interface Sized
size
in interface IndexLifecycleManager
IndexLifecycleManager.reIndexAll(Context)
public boolean isEmpty()
isEmpty
in interface Sized
public boolean isIndexConsistent()
isIndexConsistent
in interface IndexLifecycleManager
false
.public void shutdown()
IndexLifecycleManager
shutdown
in interface IndexLifecycleManager
shutdown
in interface Shutdown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |