initHooks.add(new EditorHook(CompositeEditorProvider
.compose(editorProviders)));
if (asyncIndexing) {
String name = "async";
AsyncIndexUpdate task = new AsyncIndexUpdate(name, store,
indexEditors);
regs.add(scheduleWithFixedDelay(whiteboard, task, 5, true));
regs.add(registerMBean(whiteboard, IndexStatsMBean.class,
task.getIndexStats(), IndexStatsMBean.TYPE, name));
// Register AsyncIndexStats for execution stats update
regs.add(
scheduleWithFixedDelay(whiteboard, task.getIndexStats(), 1, false));
PropertyIndexAsyncReindex asyncPI = new PropertyIndexAsyncReindex(
new AsyncIndexUpdate(IndexConstants.ASYNC_REINDEX_VALUE,
store, indexEditors, true), getExecutor());
regs.add(registerMBean(whiteboard,
PropertyIndexAsyncReindexMBean.class, asyncPI,
PropertyIndexAsyncReindexMBean.TYPE, name));
}