Package org.apache.jackrabbit.core

Examples of org.apache.jackrabbit.core.RepositoryImpl.shutdown()


            }
            RepositoryImpl repository = RepositoryImpl.create(config);
            try {
                createSourceContent(repository);
            } finally {
                repository.shutdown();
            }
            NodeStore target = new KernelNodeStore(new MicroKernelImpl());
            RepositoryUpgrade.copy(source, target);
            targetRepository = new Jcr(new Oak(target)).createRepository();
        }
View Full Code Here


                    DescriptiveStatistics statistics = runTest(test, repository);
                    if (statistics.getN() > 0) {
                        writeReport(test.toString(), name, statistics);
                    }
                } finally {
                    repository.shutdown();
                }
            } catch (Throwable t) {
                System.out.println(
                        "Unable to run " + test + ": " + t.getMessage());
            } finally {
View Full Code Here

                    createTestData(session);
                } finally {
                    session.logout();
                }
            } finally {
                repository.shutdown();
            }
        } catch (RepositoryException e) {
            e.printStackTrace();
            fail("Create repository " + name);
        }
View Full Code Here

                    assertTestData(session);
                } finally {
                    session.logout();
                }
            } finally {
                repository.shutdown();
            }
        } catch (RepositoryException e) {
            String message = "Unable to access repository " + directory;
            log.error(message, e);
            fail(message);
View Full Code Here

        }
        if (!(repo instanceof RepositoryImpl)) {
            throw new IllegalStateException(
                    "Jackrabbit is not the current working repository");
        }
        repo.shutdown();
        CommandHelper.setRepository(ctx, null, null);
        return false;
    }
}
View Full Code Here

        try {
            Context ctx = getInitialContext();
            ctx.bind(REPOSITORY_NAME, repository);
        } catch (NamingException ne) {
            repository.shutdown();
            throw ne;
        }
    }

    public void repositoryStop() throws Exception {
View Full Code Here

                    assertTestData(session);
                } finally {
                    session.logout();
                }
            } finally {
                repository.shutdown();
            }
        } catch (RepositoryException e) {
            String message = "Unable to access repository " + directory;
            log.error(message, e);
            fail(message);
View Full Code Here

        s1.refresh(true);
        s2.refresh(true);
        s1.getRootNode().getNode("test2");
        s2.getRootNode().getNode("test1");
        rep1.shutdown();
        rep2.shutdown();
    }

}
View Full Code Here

        s2.refresh(true);

        s1.getRootNode().getNode("test2");
        s2.getRootNode().getNode("test1");
        rep1.shutdown();
        rep2.shutdown();
    }

}
View Full Code Here

        }
        RepositoryImpl repo = (RepositoryImpl) CommandHelper.getRepository(ctx);
        if (repo == null) {
            throw new IllegalStateException("No current working repository");
        }
        repo.shutdown();
        CommandHelper.setRepository(ctx, null, null);
        return false;
    }
}
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.