Package org.fluentd.logger.util.MockFluentd

Examples of org.fluentd.logger.util.MockFluentd.MockProcess


    @Test
    public void testBufferingAndResending() throws InterruptedException, IOException {
        final ConcurrentLinkedQueue<Event> readEvents = new ConcurrentLinkedQueue<Event>();
        final CountDownLatch countDownLatch = new CountDownLatch(4);
        int port = MockFluentd.randomPort();
        MockProcess mockProcess = new MockFluentd.MockProcess() {
            public void process(MessagePack msgpack, Socket socket) throws IOException {
                BufferedInputStream in = new BufferedInputStream(socket.getInputStream());
                try {
                    Unpacker unpacker = msgpack.createUnpacker(in);
                    while (true) {
View Full Code Here

TOP

Related Classes of org.fluentd.logger.util.MockFluentd.MockProcess

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.