Package org.modeshape.jcr.clustering

Examples of org.modeshape.jcr.clustering.ClusteringService$ForkedClusteringService


        journal1.shutdown();
    }

    private ClusteredJournal startNewJournal( String fileLocation,
                                              String clusterName ) throws Exception {
        ClusteringService clusteringService = ClusteringService.startStandalone(clusterName, "config/jgroups-test-config.xml");
        clusteringServices.add(clusteringService);

        FileUtil.delete(fileLocation);
        LocalJournal localJournal = new LocalJournal(fileLocation);
        ClusteredJournal clusteredJournal = new ClusteredJournal(localJournal, clusteringService);
View Full Code Here


        assertThat(listener3.getObservedChangeSet().size(), is(0));
        assertThat(listener1.getObservedChangeSet().get(0), is(changeSet));
    }

    private ClusteredChangeBus startNewBus() throws Exception {
        ClusteringService clusteringService = ClusteringService.startStandalone("test-bus-process", "config/jgroups-test-config.xml");
        clusteringServices.add(clusteringService);
        ChangeBus internalBus = new RepositoryChangeBus("repo", Executors.newCachedThreadPool());
        ClusteredChangeBus bus = new ClusteredChangeBus(internalBus, clusteringService);
        bus.start();
        buses.add(bus);
View Full Code Here

TOP

Related Classes of org.modeshape.jcr.clustering.ClusteringService$ForkedClusteringService

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.