Package com.netflix.suro.routing.RoutingMap

Examples of com.netflix.suro.routing.RoutingMap.RoutingInfo


                new TypeReference<Map<String, RoutingInfo>>() {});
    }

    @Test
    public void generateRoutingInfo() throws Exception {
        RoutingInfo route1 = new RoutingInfo(
            ImmutableList.<Route>of(
                new Route(
                    "sink2",
                    new XPathFilter("xpath(\"//customerInfo/country\") =~ \"(?i)^US\"", new JsonMapConverter()),
                    null
View Full Code Here


        String routingKey = "request_trace";
        assertEquals("There should be one and only one key", 1, map.size());
        assertTrue("The only key is " + routingKey, map.containsKey(routingKey));

        RoutingInfo info = map.get(routingKey);
        List<Route> routes = info.getWhere();
        assertEquals("There should be only one sink", 1, routes.size());

        Route route = routes.get(0);
        assertEquals("sink1", route.getSink());
View Full Code Here

TOP

Related Classes of com.netflix.suro.routing.RoutingMap.RoutingInfo

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.