Package ch.unifr.nio.framework.transform

Examples of ch.unifr.nio.framework.transform.BenchmarkForwarder


                sslEngine, PLAINTEXT_BUFFER_SIZE);
        sslOutputTransformer.setNextForwarder(channelWriter);
        ByteBufferToArrayTransformer byteBufferToArrayTransformer =
                new ByteBufferToArrayTransformer();
        byteBufferToArrayTransformer.setNextForwarder(sslOutputTransformer);
        benchmarkTransformer = new BenchmarkForwarder(3000, false);
        benchmarkTransformer.setNextForwarder(byteBufferToArrayTransformer);
        benchmarkTransformer.setChannelWriter(channelWriter);
        benchmarkTransformer.setSSLOutputForwarder(sslOutputTransformer);

        // set up input transformation (just SSL)
View Full Code Here


        reader.setNextForwarder(new BenchmarkClientTransformer());

        // setup output chain
        writer = new ChannelWriter(true/*direct*/);
        benchmarkTransformer =
                new BenchmarkForwarder(SEND_BUFFER_SIZE, true/*direct*/);
        benchmarkTransformer.setNextForwarder(writer);
        benchmarkTransformer.setChannelWriter(writer);

        // register at NIO framework
        // !!! must not be called before reader and writer are created !!!
View Full Code Here

TOP

Related Classes of ch.unifr.nio.framework.transform.BenchmarkForwarder

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.