Examples of FailoverFeature


Examples of org.apache.cxf.clustering.FailoverFeature

        }
    }
   
    @Test   
    public void testSequentialStrategy() throws Exception {
        FailoverFeature feature =
            getFeature(false, false, Server.ADDRESS2, Server.ADDRESS3);
        strategyTest(Server.ADDRESS1, feature, Server.ADDRESS2, null, false, false, false);
    }
View Full Code Here

Examples of org.apache.cxf.clustering.FailoverFeature

        strategyTest(Server.ADDRESS1, feature, Server.ADDRESS2, null, false, false, false);
    }
   
    @Test   
    public void testSequentialStrategyWithCustomTargetSelector() throws Exception {
        FailoverFeature feature =
            getFeature(true, false, Server.ADDRESS2, Server.ADDRESS3);
        strategyTest("resolver://info", feature, Server.ADDRESS3, null, false, false, false);
    }
View Full Code Here

Examples of org.apache.cxf.clustering.FailoverFeature

        strategyTest("resolver://info", feature, Server.ADDRESS3, null, false, false, false);
    }
   
    @Test   
    public void testSequentialStrategyWithCustomTargetSelector2() throws Exception {
        FailoverFeature feature =
            getFeature(true, false, Server.ADDRESS2, Server.ADDRESS3);
        strategyTest("resolver://info", feature, Server.ADDRESS3, null, false, false, true);
    }
View Full Code Here

Examples of org.apache.cxf.clustering.FailoverFeature

        strategyTest("resolver://info", feature, Server.ADDRESS3, null, false, false, true);
    }
   
    @Test
    public void testSequentialStrategyWebClient() throws Exception {
        FailoverFeature feature =
            getFeature(false, false, Server.ADDRESS2, Server.ADDRESS3);
        strategyTestWebClient(Server.ADDRESS1, feature, Server.ADDRESS2, null, false, false);
    }
View Full Code Here

Examples of org.apache.cxf.clustering.FailoverFeature

        strategyTestWebClient(Server.ADDRESS1, feature, Server.ADDRESS2, null, false, false);
    }
   
    @Test
    public void testSequentialStrategyWith404() throws Exception {
        FailoverFeature feature = getFeature(false, false, Server.ADDRESS3);
        feature.getTargetSelector().setSupportNotAvailableErrorsOnly(true);
        strategyTestWebClient(Server.ADDRESS2 + "/new", feature, Server.ADDRESS3, null, false, false);
    }
View Full Code Here

Examples of org.apache.cxf.clustering.FailoverFeature

        strategyTestWebClient(Server.ADDRESS2 + "/new", feature, Server.ADDRESS3, null, false, false);
    }
   
    @Test
    public void testSequentialStrategyWith406() throws Exception {
        FailoverFeature feature = getFeature(false, false, Server.ADDRESS3);
        strategyTestWebClientHttpError(Server.ADDRESS2, feature, Server.ADDRESS3, false);
    }
View Full Code Here

Examples of org.apache.cxf.clustering.FailoverFeature

        strategyTestWebClientHttpError(Server.ADDRESS2, feature, Server.ADDRESS3, false);
    }
   
    @Test
    public void testSequentialStrategyWith406NoFailover() throws Exception {
        FailoverFeature feature = getFeature(false, false, Server.ADDRESS3);
        feature.getTargetSelector().setSupportNotAvailableErrorsOnly(true);
        strategyTestWebClientHttpError(Server.ADDRESS2, feature, Server.ADDRESS3, true);
    }
View Full Code Here

Examples of org.apache.cxf.clustering.FailoverFeature

        strategyTestWebClientHttpError(Server.ADDRESS2, feature, Server.ADDRESS3, true);
    }
   
    @Test
    public void testRandomStrategyWebClient() throws Exception {
        FailoverFeature feature =
            getFeature(false, true, Server.ADDRESS3, Server.ADDRESS2);
        strategyTestWebClient(Server.ADDRESS1, feature, Server.ADDRESS3, Server.ADDRESS2, false, true);
    }
View Full Code Here

Examples of org.apache.cxf.clustering.FailoverFeature

        strategyTestWebClient(Server.ADDRESS1, feature, Server.ADDRESS3, Server.ADDRESS2, false, true);
    }
   
    @Test   
    public void testRandomStrategy() throws Exception {
        FailoverFeature feature =
            getFeature(false, true, Server.ADDRESS2, Server.ADDRESS3);
        strategyTest(Server.ADDRESS1, feature, Server.ADDRESS2, Server.ADDRESS3, false, true, true);
    }
View Full Code Here

Examples of org.apache.cxf.clustering.FailoverFeature

        strategyTest(Server.ADDRESS1, feature, Server.ADDRESS2, Server.ADDRESS3, false, true, true);
    }
   
    @Test   
    public void testRandomStrategy2() throws Exception {
        FailoverFeature feature =
            getFeature(false, true, Server.ADDRESS2, Server.ADDRESS3);
        strategyTest(Server.ADDRESS1, feature, Server.ADDRESS2, Server.ADDRESS3, false, true, 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.