Package org.apache.jackrabbit.oak.plugins.segment.standby.server

Examples of org.apache.jackrabbit.oak.plugins.segment.standby.server.StandbyServer.start()


        p.flipByte(flipPosition);
        p.run();

        NodeStore store = new SegmentNodeStore(storeS);
        final StandbyServer server = new StandbyServer(port, storeS, ssl);
        server.start();
        addTestContent(store, "server");
        storeS.flush()// this speeds up the test a little bit...

        StandbyClient cl = new StandbyClient(LOCALHOST, PROXY_PORT, storeC, ssl);
        cl.run();
View Full Code Here


    @Test
    public void testFailover() throws Exception {

        NodeStore store = new SegmentNodeStore(storeS);
        final StandbyServer server = new StandbyServer(port, storeS);
        server.start();
        addTestContent(store, "server");

        StandbyClient cl = new StandbyClient("127.0.0.1", port, storeC);
        cl.run();
View Full Code Here

    @Test
    public void testMultipleClients() throws Exception {
        NodeStore store = new SegmentNodeStore(storeS);
        final StandbyServer server = new StandbyServer(port, storeS);
        server.start();
        SegmentTestUtils.addTestContent(store, "server");
        storeS.flush()// this speeds up the test a little bit...

        StandbyClient cl1 = new StandbyClient("127.0.0.1", port, storeC);
        StandbyClient cl2 = new StandbyClient("127.0.0.1", port, storeC2);
View Full Code Here

    }

    @Test
    public void testServerEmptyConfig() throws Exception {
        final StandbyServer server = new StandbyServer(this.port, this.storeS);
        server.start();

        final MBeanServer jmxServer = ManagementFactory.getPlatformMBeanServer();
        ObjectName status = new ObjectName(StandbyStatusMBean.JMX_NAME + ",id=*");
        try {
            Set<ObjectName> instances = jmxServer.queryNames(status, null);
View Full Code Here

    @Test
    @Ignore("OAK-2086")
    public void testClientAndServerEmptyConfig() throws Exception {
        final StandbyServer server = new StandbyServer(this.port, this.storeS);
        server.start();

        System.setProperty(StandbyClient.CLIENT_ID_PROPERTY_NAME, "Bar");
        final StandbyClient client = new StandbyClient("127.0.0.1", this.port, this.storeC);
        client.start();
View Full Code Here

    @Test
    public void testFailoverSecure() throws Exception {

        NodeStore store = new SegmentNodeStore(storeS);
        final StandbyServer server = new StandbyServer(port, storeS, true);
        server.start();
        addTestContent(store, "server");
        storeS.flush()// this speeds up the test a little bit...

        StandbyClient cl = new StandbyClient("127.0.0.1", port, storeC, true);
        cl.run();
View Full Code Here

    @Test
    public void testFailoverSecureServerPlainClient() throws Exception {

        NodeStore store = new SegmentNodeStore(storeS);
        final StandbyServer server = new StandbyServer(port, storeS, true);
        server.start();
        addTestContent(store, "server");
        storeS.flush()// this speeds up the test a little bit...

        StandbyClient cl = new StandbyClient("127.0.0.1", port, storeC);
        cl.run();
View Full Code Here

    @Test
    public void testFailoverPlainServerSecureClient() throws Exception {

        NodeStore store = new SegmentNodeStore(storeS);
        final StandbyServer server = new StandbyServer(port, storeS);
        server.start();
        addTestContent(store, "server");
        storeS.flush()// this speeds up the test a little bit...

        StandbyClient cl = new StandbyClient("127.0.0.1", port, storeC, true);
        cl.run();
View Full Code Here

    }

    private void createTestWithConfig(String host, String[] ipRanges, boolean expectedToWork) throws Exception {
        NodeStore store = new SegmentNodeStore(storeS);
        final StandbyServer server = new StandbyServer(port, storeS, ipRanges);
        server.start();
        addTestContent(store, "server");
        storeS.flush()// this speeds up the test a little bit...

        StandbyClient cl = new StandbyClient(host, port, storeC);
        cl.run();
View Full Code Here

        }
        store.merge(rootbuilder, EmptyHook.INSTANCE, CommitInfo.EMPTY);
        storeS.flush();

        final StandbyServer server = new StandbyServer(port, storeS, useSSL);
        server.start();

        System.setProperty(StandbyClient.CLIENT_ID_PROPERTY_NAME, "Bar");
        StandbyClient cl = new StandbyClient("127.0.0.1", port, storeC, useSSL);

        final MBeanServer jmxServer = ManagementFactory.getPlatformMBeanServer();
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.