Package org.apache.qpid.framing

Examples of org.apache.qpid.framing.ProtocolInitiation


    public void exception(Throwable throwable)
    {
        if (throwable instanceof AMQProtocolHeaderException)
        {
            writeFrame(new ProtocolInitiation(ProtocolVersion.getLatestSupportedVersion()));
            _sender.close();

            _logger.error("Error in protocol initiation " + this + ":" + getRemoteAddress() + " :" + throwable.getMessage(), throwable);
        }
        else if (throwable instanceof IOException)
View Full Code Here


    {
        AMQProtocolSession session = AMQMinaProtocolSession.getAMQProtocolSession(protocolSession);
        if (throwable instanceof AMQProtocolHeaderException)
        {

            protocolSession.write(new ProtocolInitiation(ProtocolVersion.getLatestSupportedVersion()));

            protocolSession.close();

            _logger.error("Error in protocol initiation " + session + ":" + protocolSession.getRemoteAddress() + " :" + throwable.getMessage(), throwable);
        }
View Full Code Here

    public void init()
    {
        // start the process of setting up the connection. This is the first place that
        // data is written to the server.

        _minaProtocolSession.write(new ProtocolInitiation(ProtocolVersion.getLatestSupportedVersion()));
    }
View Full Code Here

           
            /* Find last protocol version in protocol version list. Make sure last protocol version
            listed in the build file (build-module.xml) is the latest version which will be used
            here. */

            session.write(new ProtocolInitiation(ProtocolVersion.getLatestSupportedVersion()));
        }
View Full Code Here

    {
        AMQProtocolSession session = AMQMinaProtocolSession.getAMQProtocolSession(protocolSession);
        if (throwable instanceof AMQProtocolHeaderException)
        {

            protocolSession.write(new ProtocolInitiation(ProtocolVersion.getLatestSupportedVersion()));

            protocolSession.close();

            _logger.error("Error in protocol initiation " + session + ":" + protocolSession.getRemoteAddress() + " :" + throwable.getMessage(), throwable);
        }
View Full Code Here

            else
            {
                enoughData = _piDecoder.decodable(msg);
                if (enoughData)
                {
                    dataBlocks.add(new ProtocolInitiation(msg));
                }

            }

            if(!enoughData)
View Full Code Here

    public void init()
    {
        // start the process of setting up the connection. This is the first place that
        // data is written to the server.
        _protocolHandler.writeFrame(new ProtocolInitiation(_connection.getProtocolVersion()));
    }
View Full Code Here

        }
        catch (AMQException e)
        {
            _logger.info("Received unsupported protocol initiation for protocol version: " + getProtocolVersion());

            _sender.send(asByteBuffer(new ProtocolInitiation(ProtocolVersion.getLatestSupportedVersion())));
            _sender.flush();
        }
    }
View Full Code Here

    public void exception(Throwable throwable)
    {
        if (throwable instanceof AMQProtocolHeaderException)
        {
            writeFrame(new ProtocolInitiation(ProtocolVersion.getLatestSupportedVersion()));
            _sender.close();

            _logger.error("Error in protocol initiation " + this + ":" + getRemoteAddress() + " :" + throwable.getMessage(), throwable);
        }
        else if (throwable instanceof IOException)
View Full Code Here

            else
            {
                enoughData = _piDecoder.decodable(msg);
                if (enoughData)
                {
                    dataBlocks.add(new ProtocolInitiation(msg));
                }

            }

            if(!enoughData)
View Full Code Here

TOP

Related Classes of org.apache.qpid.framing.ProtocolInitiation

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.