Package com.netflix.suro

Examples of com.netflix.suro.SuroPlugin


    }

    @Test
    public void test() throws Exception {
        Injector injector = LifecycleInjector.builder().withModules(
                new SuroPlugin() {
                    @Override
                    protected void configure() {
                        this.addSinkType("TestSink", TestSink.class);
                    }
                },
View Full Code Here


        final Properties properties = new Properties();
        properties.setProperty(ServerConfig.MESSAGE_ROUTER_THREADS, "1");

        Injector injector = LifecycleInjector.builder()
            .withModules(
                new SuroPlugin() {
                    @Override
                    protected void configure() {
                        bind(ObjectMapper.class).to(DefaultObjectMapper.class);
                        this.addSinkType("TestSink", TestMessageRouterSink.class);
                    }
View Full Code Here

    private Injector injector;

    @Before
    public void setup() {
        injector = Guice.createInjector(
                new SuroPlugin() {
                    @Override
                    protected void configure() {
                        this.addSinkType("TestSink", TestSinkManager.TestSink.class);

                        this.addNoticeType(NoNotice.TYPE, NoNotice.class);
View Full Code Here

        props.put(DynamicPropertyInputConfigurator.INPUT_CONFIG_PROPERTY, inputConfig);
        if (mapDesc != null) {
            props.put(DynamicPropertyRoutingMapConfigurator.ROUTING_MAP_PROPERTY, mapDesc);
        }

        SuroServer.create(injector, props, new SuroPlugin() {
            @Override
            protected void configure() {
                this.addSinkType("TestSink", TestMessageRouter.TestMessageRouterSink.class);
            }
        });
View Full Code Here

                "    \"SuroClient.clientType\":\"sync\"\n" +
                "  }\n" +
                "}";

        Injector injector = Guice.createInjector(
                new SuroPlugin() {
                    @Override
                    protected void configure() {
                        this.addSinkType(SuroSink.TYPE, SuroSink.class);
                        this.addSinkType(KafkaSink.TYPE, KafkaSink.class);
View Full Code Here

TOP

Related Classes of com.netflix.suro.SuroPlugin

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.