Package org.apache.jackrabbit.core

Examples of org.apache.jackrabbit.core.RepositoryImpl$WorkspaceJanitor


    public void testGC() throws Exception {
        Node root = testRootNode;
        Session session = root.getSession();

        RepositoryImpl rep = (RepositoryImpl) session.getRepository();
        if (rep.getDataStore() == null) {
            LOG.info("testGC skipped. Data store is not used.");
            return;
        }

        deleteMyNodes();
View Full Code Here


    public void testTransientObjects() throws Exception {

        Node root = testRootNode;
        Session session = root.getSession();

        RepositoryImpl rep = (RepositoryImpl) session.getRepository();
        if (rep.getDataStore() == null) {
            LOG.info("testTransientObjects skipped. Data store is not used.");
            return;
        }

        deleteMyNodes();
View Full Code Here

            log("Test skipped. Required repository class: "
                    + RepositoryImpl.class + " got: " + rep.getClass());
            return;
        }

        RepositoryImpl r = (RepositoryImpl) rep;
        RepositoryConfig conf = r.getConfig();
        Collection coll = conf.getWorkspaceConfigs();
        String[] names = new String[coll.size()];
        Iterator wspIt = coll.iterator();
        for(int i = 0; wspIt.hasNext(); i++) {
            WorkspaceConfig wsc = (WorkspaceConfig) wspIt.next();
            names[i] = wsc.getName();
        }

        for (int i = 0; i < names.length; i++) {
            Method m = r.getClass().getDeclaredMethod("getWorkspaceInfo", new Class[] { String.class });
            m.setAccessible(true);
            Object info = m.invoke(r, new String[] { names[i] });
            m = info.getClass().getDeclaredMethod("getPersistenceManager", new Class[0]);
            m.setAccessible(true);
            PersistenceManager pm = (PersistenceManager) m.invoke(info, new Object[0]);
View Full Code Here

   
    public void testGC() throws Exception {
        Node root = testRootNode;
        Session session = root.getSession();
       
        RepositoryImpl rep = (RepositoryImpl) session.getRepository();
        if (rep.getDataStore() == null) {
            LOG.info("testGC skipped. Data store is not used.");
            return;
        }
       
        deleteMyNodes();
View Full Code Here

    public void testTransientObjects() throws Exception {
       
        Node root = testRootNode;
        Session session = root.getSession();
       
        RepositoryImpl rep = (RepositoryImpl) session.getRepository();
        if (rep.getDataStore() == null) {
            LOG.info("testTransientObjects skipped. Data store is not used.");
            return;
        }
       
        deleteMyNodes();
View Full Code Here

            log("Test skipped. Required repository class: "
                    + RepositoryImpl.class + " got: " + rep.getClass());
            return;
        }

        RepositoryImpl r = (RepositoryImpl) rep;
        RepositoryConfig conf = r.getConfig();
        Collection coll = conf.getWorkspaceConfigs();
        String[] names = new String[coll.size()];
        Iterator wspIt = coll.iterator();
        for(int i = 0; wspIt.hasNext(); i++) {
            WorkspaceConfig wsc = (WorkspaceConfig) wspIt.next();
            names[i] = wsc.getName();
        }

        for (int i = 0; i < names.length; i++) {
            Method m = r.getClass().getDeclaredMethod("getWorkspaceInfo", new Class[] { String.class });
            m.setAccessible(true);
            Object info = m.invoke(r, new String[] { names[i] });
            m = info.getClass().getDeclaredMethod("getPersistenceManager", new Class[0]);
            m.setAccessible(true);
            PersistenceManager pm = (PersistenceManager) m.invoke(info, new Object[0]);
View Full Code Here

    private static final Logger LOG = LoggerFactory.getLogger(GCConcurrentTest.class);

    public void testGC() throws Exception {
        Node root = testRootNode;
        Session session = root.getSession();
        RepositoryImpl rep = (RepositoryImpl) session.getRepository();
        if (rep.getDataStore() == null) {
            LOG.info("testGC skipped. Data store is not used.");
            return;
        }
        GCThread gc = new GCThread(session);
        Thread gcThread = new Thread(gc, "Datastore Garbage Collector");
View Full Code Here

    private static final Logger LOG = LoggerFactory.getLogger(GarbageCollectorTest.class);   
   
    public void testConcurrentGC() throws Exception {
        Node root = testRootNode;
        Session session = root.getSession();
        RepositoryImpl rep = (RepositoryImpl) session.getRepository();
        if (rep.getDataStore() == null) {
            LOG.info("testConcurrentGC skipped. Data store is not used.");
            return;
        }
        final SynchronousChannel sync = new SynchronousChannel();
        final Node node = root.addNode("slowBlob");
View Full Code Here

    public void testGC() throws Exception {
        Node root = testRootNode;
        Session session = root.getSession();
       
        RepositoryImpl rep = (RepositoryImpl) session.getRepository();
        if (rep.getDataStore() == null) {
            LOG.info("testGC skipped. Data store is not used.");
            return;
        }
       
        deleteMyNodes();
View Full Code Here

    public void testTransientObjects() throws Exception {
       
        Node root = testRootNode;
        Session session = root.getSession();
       
        RepositoryImpl rep = (RepositoryImpl) session.getRepository();
        if (rep.getDataStore() == null) {
            LOG.info("testTransientObjects skipped. Data store is not used.");
            return;
        }
       
        deleteMyNodes();
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.RepositoryImpl$WorkspaceJanitor

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.