Package org.apache.jackrabbit.oak.plugins.index

Examples of org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate


        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));

            PropertyIndexAsyncReindex asyncPI = new PropertyIndexAsyncReindex(
                    new AsyncIndexUpdate("async-reindex", store, indexEditors,
                            true), executor);
            regs.add(registerMBean(whiteboard, PropertyIndexAsyncReindexMBean.class,
                    asyncPI, PropertyIndexAsyncReindexMBean.TYPE, name));
        }
View Full Code Here


        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));
        }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.