Package com.netflix.suro.routing

Examples of com.netflix.suro.routing.MessageRouter


        sendKafkaMessage(jsonMapper, kafkaServer.getBrokerListStr(), TOPIC_NAME);

        final CountDownLatch latch = new CountDownLatch(2);

        MessageRouter router = mock(MessageRouter.class);
        doAnswer(new Answer() {

            @Override
            public Object answer(InvocationOnMock invocation) throws Throwable {
                latch.countDown();
View Full Code Here


        AWSCredentials credentials = mock(AWSCredentials.class);
        doReturn("accessKey").when(credentials).getAWSAccessKeyId();
        doReturn("secretKey").when(credentials).getAWSSecretKey();
        doReturn(credentials).when(awsCredentials).getCredentials();

        MessageRouter router = mock(MessageRouter.class);

        int numOfLines = 3;
        final StringBuilder sb = new StringBuilder();
        for (int i = 0; i < numOfLines; ++i) {
            sb.append("line" + i).append('\n');
View Full Code Here

        SinkManager sinks = new SinkManager();
        sinks.initialSet(new ImmutableMap.Builder<String, Sink>()
                .put("es", sink).build());

        MessageRouter router = new MessageRouter(map, sinks, jsonMapper);

        Properties properties = new Properties();
        properties.setProperty("group.id", "testkafkaconsumer");
        properties.setProperty("zookeeper.connect", zk.getConnectionString());
        properties.setProperty("auto.offset.reset", "smallest");
View Full Code Here

                .put(TOPIC_NAME, new RoutingMap.RoutingInfo(Lists.newArrayList(new RoutingMap.Route("local", null, null)), null))
                .build());

        MessageSetProcessor msgProcessor = new MessageSetProcessor(
                new Queue4Server(config),
                new MessageRouter(map, sinks, jsonMapper),
                config,
                jsonMapper
        );

        ThriftServer server = new ThriftServer(config, msgProcessor);
View Full Code Here

TOP

Related Classes of com.netflix.suro.routing.MessageRouter

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.