Package org.apache.jackrabbit.oak.plugins.blob.datastore

Examples of org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore$LogicalBlockId


    @Test
    public void testPropertySetup() throws Exception {
        System.setProperty(DS_CLASS_NAME, FileDataStore.class.getName());
        System.setProperty("ds.minRecordLength", "1000");

        DataStoreBlobStore dbs = getBlobStore();
        assertEquals(1000, dbs.getDataStore().getMinRecordLength());
    }
View Full Code Here


     */
    protected void openConnection() throws Exception {
        if (blobStore == null) {
            FileDataStore fds = new FileDataStore();
            fds.init(new File("target", "BlobStoreTest").getAbsolutePath());
            blobStore = new DataStoreBlobStore(fds);
        }
    }
View Full Code Here

    public static DataStoreBlobStore getBlobStore() throws Exception {
        String className = System.getProperty(DS_CLASS_NAME, FileDataStore.class.getName());
        DataStore ds = Class.forName(className).asSubclass(DataStore.class).newInstance();
        PropertiesUtil.populate(ds, getConfig(), false);
        ds.init(getHomeDir());
        return new DataStoreBlobStore(ds);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore$LogicalBlockId

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.