use of org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate in project jackrabbit-oak by apache.
the class SimpleAsyncReindexer method reindex.
private void reindex(String laneName) {
AsyncIndexUpdate async = new AsyncIndexUpdate(laneName, getNodeStore(), indexEditorProvider, indexHelper.getStatisticsProvider(), false);
//TODO Expose the JMX
boolean done = false;
while (!done) {
//TODO Check for timeout
async.run();
done = async.isFinished();
}
}
Aggregations