Package org.apache.jackrabbit.test.config

Examples of org.apache.jackrabbit.test.config.RepositoryConf


        directory.mkdir();

        server = new NetworkServerControl();
        startDerby();

        RepositoryConf conf = new RepositoryConf();

        // set jdbc urls on PMs for external derby
        // workspaces
        PersistenceManagerConf pmc = conf.getWorkspaceConfTemplate().getPersistenceManagerConf();
        pmc.setParameter("url", "jdbc:derby://localhost/${wsp.home}/version/db/itemState;create=true");
        pmc.setParameter("driver", DRIVER);
        pmc.setParameter("user", USER);
        pmc.setParameter("password", PASSWORD);
        // false is the default value anyway, but we want to make sure, the code does not block forever
        pmc.setParameter("blockOnConnectionLoss", "false");

        // versioning
        pmc = conf.getVersioningConf().getPersistenceManagerConf();
        pmc.setParameter("url", "jdbc:derby://localhost/${rep.home}/db/itemState;create=true");
        pmc.setParameter("driver", DRIVER);
        pmc.setParameter("user", USER);
        pmc.setParameter("password", PASSWORD);
        // false is the default value anyway, but we want to make sure, the code does not block forever
        pmc.setParameter("blockOnConnectionLoss", "false");

        RepositoryConfig config = conf.createConfig(directory.getPath());
        config.init();
        repository = RepositoryImpl.create(config);
    }
View Full Code Here


        SearchConf sc = parseSearchConf(root);

        // Optional journal Configuration
        ClusterConf cc = parseClusterConf(root);
       
        return new RepositoryConf(home, securityConf, fsc,
                workspaceDirectory, workspaceConfDirectory, defaultWorkspace,
                maxIdleTime, wcTemplate, vc, sc, cc);
    }
View Full Code Here

    private static AdminRepositoryImpl repository = createRepository();
   
    private static AdminRepositoryImpl createRepository() {
        log.debug("Start repo at '" + DIRECTORY.getPath() + "'...");
       
        RepositoryConf conf = new RepositoryConf();
        // ensure correct derby config
        PersistenceManagerConf pmc = conf.getWorkspaceConfTemplate().getPersistenceManagerConf();
        pmc.setParameter("url", PROTOCOL + "${wsp.home}" + DB_PATH + ";create=true");
       
        pmc = conf.getVersioningConf().getPersistenceManagerConf();
        pmc.setParameter("url", PROTOCOL + "${rep.home}" + VERSIONING_DB_PATH + ";create=true");
        pmc.setParameter("schemaObjectPrefix", "VERSION_");
        try {
            RepositoryConfig config = conf.createConfig(DIRECTORY.getPath());
            config.init();
            return new AdminRepositoryImpl(config);
        } catch (Exception e) {
            fail("Could not create repository for test: " + e);
            return null;
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.test.config.RepositoryConf

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.