Hi Matt, > On 20 Oct 2017, at 23:02, Matt Ryan <[email protected]> wrote: > > I think I basically understand all of this, except I don’t know how you go > about configuring two file data stores. What would that look like in > practice? Normally if I were going to configure a FileDataStore I would > create a configuration file with the pid > “org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore”. So it is > unclear to me how I would go about configuring more than one of these. > > This is important because being able to have more than one of the same type > of data store in the composite is a requirement IMO.
Yes, it’ll need implementing the FileDataStoreFactory - an OSGi type that allows creating multiple service instances with different configurations [1]. It was similar with the composite node store - we had to implement the SegmentNodeStoreFactory [2], to create multiple SegmentMK in different locations. Regards, Tomek [1] https://cqdump.wordpress.com/2014/08/05/managing-multiple-instances-of-services-osgi-service-factories/ [2] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/SegmentNodeStoreFactory.java -- Tomek Rękawek | Adobe Research | www.adobe.com [email protected]
signature.asc
Description: Message signed with OpenPGP
