Package org.archive.bdb

Examples of org.archive.bdb.BdbModule.start()


        FileUtils.ensureWriteableDirectory(checkpoints);
       
        BdbModule bdb = new BdbModule();
        bdb.setDir(new ConfigPath("test",state.getAbsolutePath()));
//        def.set(bdb, BdbModule.DIR, state.getAbsolutePath());
        bdb.start();
       
        CrawlController controller = new CrawlController();
        controller.setServerCache(new BdbServerCache());
        controller.start();
        return controller;
View Full Code Here


        bdbDir.setBase(basePath);
        FileUtils.deleteDirectory(bdbDir.getFile());

        BdbModule bdb = new BdbModule();
        bdb.setDir(bdbDir);
        bdb.start();

        // avoid data from prior runs being mistaken for current run
        int randomFactor = RandomUtils.nextInt();
       
        ObjectIdentityBdbManualCache<IdentityCacheableWrapper> testData =
View Full Code Here

        recoveryCheckpoint.setCheckpointDir(recoverPath);
        recoveryCheckpoint.afterPropertiesSet();
       
        bdb2.setRecoveryCheckpoint(recoveryCheckpoint);
       
        bdb2.start();
       
        ObjectIdentityBdbManualCache<IdentityCacheableWrapper> restoreData =
            bdb2.getOIBCCache("testData",true,IdentityCacheableWrapper.class);
       
        assertEquals("unexpected size", 1000, restoreData.size());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.