Package ch.unifr.nio.framework.transform

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


        // set up output transformation chain:
        // Benchmark -> Array -> SSL
        sslOutputTransformer = new SSLOutputForwarder(
                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);
View Full Code Here


                Executors.newSingleThreadScheduledExecutor(), 1, 1000, false);
        trafficShaperCoordinator.addTrafficShaper(
                this, dummyTrafficOutputTransformer);
        dummyTrafficOutputTransformer.setNextForwarder(
                byteBufferArraySequenceForwarder);
        ByteBufferToArrayTransformer byteBufferToArrayTransformer =
                new ByteBufferToArrayTransformer();
        byteBufferToArrayTransformer.setNextForwarder(
                dummyTrafficOutputTransformer);
        stringToByteBufferTransformer = new StringToByteBufferTransformer();
        stringToByteBufferTransformer.setNextForwarder(
                byteBufferToArrayTransformer);
View Full Code Here

                Speed.SLOW.getPackageSize(), Speed.SLOW.getDelay(), false);
        trafficShaperCoordinator.addTrafficShaper(
                this, dummyTrafficOutputTransformer);
        dummyTrafficOutputTransformer.setNextForwarder(
                byteBufferArraySequenceForwarder);
        ByteBufferToArrayTransformer byteBufferToArrayTransformer =
                new ByteBufferToArrayTransformer();
        byteBufferToArrayTransformer.setNextForwarder(
                dummyTrafficOutputTransformer);
        StringToByteBufferTransformer stringToByteBufferTransformer =
                new StringToByteBufferTransformer();
        stringToByteBufferTransformer.setNextForwarder(
                byteBufferToArrayTransformer);
View Full Code Here

        bufferTransformer.setNextForwarder(channelWriter);
        FramingOutputTransformer framingOutputTransformer =
                new FramingOutputTransformer(
                FRAMING_HEADER_SIZE, ByteBufferForwardingMode.DIRECT);
        framingOutputTransformer.setNextForwarder(bufferTransformer);
        ByteBufferToArrayTransformer byteBufferToArrayTransformer =
                new ByteBufferToArrayTransformer();
        byteBufferToArrayTransformer.setNextForwarder(
                framingOutputTransformer);
        StringToByteBufferTransformer stringToByteBufferTransformer =
                new StringToByteBufferTransformer();
        stringToByteBufferTransformer.setNextForwarder(
                byteBufferToArrayTransformer);
View Full Code Here

        sslOutputForwarder = new SSLOutputForwarder(
                sslEngine, initialPlainTextBufferSize);
        sslOutputForwarder.setHandshakeNotifier(handshakeNotifier);
        channelWriter = new ChannelWriter(false);
        sslOutputForwarder.setNextForwarder(channelWriter);
        byteBufferToArrayTransformer = new ByteBufferToArrayTransformer();
        byteBufferToArrayTransformer.setNextForwarder(sslOutputForwarder);

        // cross reference both transformers (needed for handshake)
        sslInputForwarder.setSSLOutputForwarder(sslOutputForwarder);
        sslOutputForwarder.setSSLInputForwarder(sslInputForwarder);
View Full Code Here

                Executors.newSingleThreadScheduledExecutor(),
                Speed.SLOW.getPackageSize(), Speed.SLOW.getDelay(), false);
        trafficShaperCoordinator.addTrafficShaper(
                this, dummyTrafficOutputTransformer);
        dummyTrafficOutputTransformer.setNextForwarder(sslOutputForwarder);
        ByteBufferToArrayTransformer byteBufferToArrayTransformer2 =
                new ByteBufferToArrayTransformer();
        byteBufferToArrayTransformer2.setNextForwarder(
                dummyTrafficOutputTransformer);
        StringToByteBufferTransformer stringTransformer =
                new StringToByteBufferTransformer();
        stringTransformer.setNextForwarder(byteBufferToArrayTransformer2);
View Full Code Here

TOP

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

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.