Search in sources :

Example 1 with JournalPropertyHandlerFactory

use of org.apache.jackrabbit.oak.plugins.document.JournalPropertyHandlerFactory in project jackrabbit-oak by apache.

the class HybridIndexClusterIT method getFixture.

@Override
protected NodeStoreFixture getFixture() {
    return new DocumentMemoryFixture() {

        @Override
        public NodeStore createNodeStore(int clusterNodeId) {
            JournalPropertyHandlerFactory tracker = new JournalPropertyHandlerFactory();
            Whiteboard wb = clusterNodeId == 1 ? nswb1 : nswb2;
            tracker.start(wb);
            return new DocumentMK.Builder().setDocumentStore(documentStore).setJournalPropertyHandlerFactory(tracker).setAsyncDelay(0).getNodeStore();
        }
    };
}
Also used : JournalPropertyHandlerFactory(org.apache.jackrabbit.oak.plugins.document.JournalPropertyHandlerFactory) IndexDefinitionBuilder(org.apache.jackrabbit.oak.plugins.index.lucene.util.IndexDefinitionBuilder) DocumentMemoryFixture(org.apache.jackrabbit.oak.fixture.DocumentMemoryFixture) Whiteboard(org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard) DefaultWhiteboard(org.apache.jackrabbit.oak.spi.whiteboard.DefaultWhiteboard)

Aggregations

DocumentMemoryFixture (org.apache.jackrabbit.oak.fixture.DocumentMemoryFixture)1 JournalPropertyHandlerFactory (org.apache.jackrabbit.oak.plugins.document.JournalPropertyHandlerFactory)1 IndexDefinitionBuilder (org.apache.jackrabbit.oak.plugins.index.lucene.util.IndexDefinitionBuilder)1 DefaultWhiteboard (org.apache.jackrabbit.oak.spi.whiteboard.DefaultWhiteboard)1 Whiteboard (org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard)1