Package org.jgroups.util

Examples of org.jgroups.util.ExposedDataOutputStream


        int                num_frags;

        try {
            // write message into a byte buffer and fragment it
            ExposedByteArrayOutputStream out_stream=new ExposedByteArrayOutputStream((int)(size + 50));
            ExposedDataOutputStream dos=new ExposedDataOutputStream(out_stream);
            msg.writeTo(dos);
            byte[] buffer=out_stream.getRawBuffer();
            byte[][] fragments=Util.fragmentBuffer(buffer, frag_size, dos.size());
            num_frags=fragments.length;
            num_sent_frags+=num_frags;

            if(log.isTraceEnabled()) {
                StringBuilder sb=new StringBuilder();
View Full Code Here


        if(hdr == null)
            throw new Exception("message " + msg + " doesn't have a transport header, cannot route it");
        String group=hdr.channel_name;

        ExposedByteArrayOutputStream out_stream=new ExposedByteArrayOutputStream((int)(msg.size() + 50));
        ExposedDataOutputStream dos=new ExposedDataOutputStream(out_stream);

        writeMessage(msg, dos, multicast);
        Buffer buf=new Buffer(out_stream.getRawBuffer(), 0, out_stream.size());

        if(stats) {
View Full Code Here

        if(hdr == null)
            throw new Exception("message " + msg + " doesn't have a transport header, cannot route it");
        String group=hdr.channel_name;

        ExposedByteArrayOutputStream out_stream=new ExposedByteArrayOutputStream((int)(msg.size() + 50));
        ExposedDataOutputStream dos=new ExposedDataOutputStream(out_stream);

        writeMessage(msg, dos, multicast);
        Buffer buf=new Buffer(out_stream.getRawBuffer(), 0, out_stream.size());

        if(stats) {
View Full Code Here

        int                num_frags;

        try {
            // write message into a byte buffer and fragment it
            ExposedByteArrayOutputStream out_stream=new ExposedByteArrayOutputStream((int)(size + 50));
            ExposedDataOutputStream dos=new ExposedDataOutputStream(out_stream);
            msg.writeTo(dos);
            byte[] buffer=out_stream.getRawBuffer();
            byte[][] fragments=Util.fragmentBuffer(buffer, frag_size, dos.size());
            num_frags=fragments.length;
            num_sent_frags+=num_frags;

            if(log.isTraceEnabled()) {
                StringBuilder sb=new StringBuilder();
View Full Code Here

        if(hdr == null)
            throw new Exception("message " + msg + " doesn't have a transport header, cannot route it");
        String group=hdr.channel_name;

        ExposedByteArrayOutputStream out_stream=new ExposedByteArrayOutputStream((int)(msg.size() + 50));
        ExposedDataOutputStream dos=new ExposedDataOutputStream(out_stream);

        writeMessage(msg, dos, multicast);
        Buffer buf=new Buffer(out_stream.getRawBuffer(), 0, out_stream.size());

        if(stats) {
View Full Code Here

        int                num_frags;

        try {
            // write message into a byte buffer and fragment it
            ExposedByteArrayOutputStream out_stream=new ExposedByteArrayOutputStream((int)(size + 50));
            ExposedDataOutputStream dos=new ExposedDataOutputStream(out_stream);
            msg.writeTo(dos);
            byte[] buffer=out_stream.getRawBuffer();
            byte[][] fragments=Util.fragmentBuffer(buffer, frag_size, dos.size());
            num_frags=fragments.length;
            num_sent_frags+=num_frags;

            if(log.isTraceEnabled()) {
                StringBuilder sb=new StringBuilder();
View Full Code Here

        int                num_frags;

        try {
            // write message into a byte buffer and fragment it
            ExposedByteArrayOutputStream out_stream=new ExposedByteArrayOutputStream((int)(size + 50));
            ExposedDataOutputStream dos=new ExposedDataOutputStream(out_stream);
            msg.writeTo(dos);
            byte[] buffer=out_stream.getRawBuffer();
            byte[][] fragments=Util.fragmentBuffer(buffer, frag_size, dos.size());
            num_frags=fragments.length;
            num_sent_frags+=num_frags;

            if(log.isTraceEnabled()) {
                StringBuilder sb=new StringBuilder();
View Full Code Here

TOP

Related Classes of org.jgroups.util.ExposedDataOutputStream

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.