Examples of ThriftCodecManager


Examples of com.facebook.swift.codec.ThriftCodecManager

                }
            });

    public ThriftClientManager()
    {
        this(new ThriftCodecManager());
    }
View Full Code Here

Examples of com.facebook.swift.codec.ThriftCodecManager

    @Test
    public void testSwiftService()
            throws Exception
    {
        SwiftScribe scribeService = new SwiftScribe();
        NiftyProcessor processor = new ThriftServiceProcessor(new ThriftCodecManager(), ImmutableList.<ThriftEventHandler>of(), scribeService);

        List<LogEntry> messages = testProcessor(processor);
        assertEquals(scribeService.getMessages(), newArrayList(concat(toSwiftLogEntry(messages), toSwiftLogEntry(messages))));
    }
View Full Code Here

Examples of com.facebook.swift.codec.ThriftCodecManager

    @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = "duplicate key.*")
    public void testConflictingServices()
            throws Exception
    {
        new ThriftServiceProcessor(new ThriftCodecManager(), ImmutableList.<ThriftEventHandler>of(),
                new SwiftScribe(), new ConflictingLogService());
    }
View Full Code Here

Examples of com.facebook.swift.codec.ThriftCodecManager

    {
        SwiftScribe scribeService = new SwiftScribe();
        EventHandler eventHandler = new EventHandler(niftyProcessor);
        EventHandler secondHandler = new EventHandler(niftyProcessor);
        List<EventHandler> handlers = ImmutableList.of(eventHandler, secondHandler);
        final ThriftServiceProcessor processor = new ThriftServiceProcessor(new ThriftCodecManager(), handlers, scribeService);

        List<LogEntry> messages = niftyProcessor ?
                testProcessor(processor) : testProcessor(new TProcessor()
        {
            @Override
View Full Code Here

Examples of com.facebook.swift.codec.ThriftCodecManager

        private final NettyServerTransport server;

        public ScopedServer(TProtocolFactory protocolFactory)
                throws TTransportException, InterruptedException
        {
            ThriftServiceProcessor processor = new ThriftServiceProcessor(new ThriftCodecManager(),
                    ImmutableList.<ThriftEventHandler>of(), new ScribeHandler());

            ThriftServerDef def = ThriftServerDef.newBuilder()
                                                 .listen(0)
                                                 .withProcessor(processor)
View Full Code Here

Examples of com.facebook.swift.codec.ThriftCodecManager

                }
            });

    public ThriftClientManager()
    {
        this(new ThriftCodecManager());
    }
View Full Code Here

Examples of com.facebook.swift.codec.ThriftCodecManager

    private final Set<ThriftClientEventHandler> globalEventHandlers;

    public ThriftClientManager()
    {
        this(new ThriftCodecManager());
    }
View Full Code Here

Examples of com.facebook.swift.codec.ThriftCodecManager

    @BeforeMethod(alwaysRun = true)
    public void setup()
            throws IllegalAccessException, InstantiationException, TException
    {
        codecManager = new ThriftCodecManager();
        clientManager = new ThriftClientManager(codecManager);
        syncServer = createSyncServer();
    }
View Full Code Here

Examples of com.facebook.swift.codec.ThriftCodecManager

    private final Set<ThriftClientEventHandler> globalEventHandlers;

    public ThriftClientManager()
    {
        this(new ThriftCodecManager());
    }
View Full Code Here

Examples of com.facebook.swift.codec.ThriftCodecManager

        this(new ThriftCodecManager());
    }

    public ThriftClientManager(ClassLoader parent)
    {
        this(new ThriftCodecManager(parent));
    }
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.