Package org.apache.qpid.server.transport

Examples of org.apache.qpid.server.transport.ServerConnection


         * 3 - Virtualhost
         * 4 - Channel ID
         */
        if(session.getConnection() instanceof ServerConnection)
        {
            ServerConnection connection = (ServerConnection) session.getConnection();
            setLogStringWithFormat(CHANNEL_FORMAT,
                                   connection == null ? -1L : connection.getConnectionId(),
                                   session.getAuthorizedPrincipal() == null ? "?" : session.getAuthorizedPrincipal().getName(),
                                   (connection == null || connection.getConfig() == null) ? "?" : connection.getConfig().getAddress(),
                                   session.getVirtualHost().getName(),
                                   session.getChannel());
        }
    }
View Full Code Here


                getChannel().getCreditManager(),getChannel().getClientDeliveryMethod(), getChannel().getRecordDeliveryMethod());
        assertEquals("Unexpected Subscription ID allocated", previousId + 1, getNoAckSub.getSubscriptionID());
        previousId = getNoAckSub.getSubscriptionID();

        //create a 0-10 subscription
        ServerConnection conn = new ServerConnection(1);
        ProtocolEngine_0_10 engine = new ProtocolEngine_0_10(conn, new TestNetworkConnection(), getRegistry());
        conn.setVirtualHost(getVirtualHost());
        conn.setConnectionConfig(engine);
        ServerSessionDelegate sesDel = new ServerSessionDelegate();
        Binary name = new Binary(new byte[]{new Byte("1")});
        ServerSession session = new ServerSession(conn, sesDel, name, 0, engine);

        Subscription sub_0_10 = SubscriptionFactoryImpl.INSTANCE.createSubscription(session, "1", MessageAcceptMode.EXPLICIT,
View Full Code Here

         * 3 - Virtualhost
         * 4 - Channel ID
         */
        if(session.getConnection() instanceof ServerConnection)
        {
            ServerConnection connection = (ServerConnection) session.getConnection();
            setLogStringWithFormat(CHANNEL_FORMAT,
                                   connection == null ? -1L : connection.getConnectionId(),
                                   session.getAuthorizedPrincipal() == null ? "?" : session.getAuthorizedPrincipal().getName(),
                                   (connection == null || connection.getRemoteAddressString() == null) ? "?" : connection.getRemoteAddressString(),
                                   session.getVirtualHost().getName(),
                                   session.getChannel());
        }
    }
View Full Code Here

                _channel.getCreditManager(),_channel.getClientDeliveryMethod(), _channel.getRecordDeliveryMethod());
        assertEquals("Unexpected Subscription ID allocated", previousId + 1, getNoAckSub.getSubscriptionID());
        previousId = getNoAckSub.getSubscriptionID();

        //create a 0-10 subscription
        ServerConnection conn = new ServerConnection(1);
        ProtocolEngine_0_10 engine = new ProtocolEngine_0_10(conn, new TestNetworkConnection());
        conn.setVirtualHost(_session.getVirtualHost());
        ServerSessionDelegate sesDel = new ServerSessionDelegate();
        Binary name = new Binary(new byte[]{new Byte("1")});
        ServerSession session = new ServerSession(conn, sesDel, name, 0);

        Subscription sub_0_10 = SubscriptionFactoryImpl.INSTANCE.createSubscription(session, "1", MessageAcceptMode.EXPLICIT,
View Full Code Here

                getChannel().getCreditManager(),getChannel().getClientDeliveryMethod(), getChannel().getRecordDeliveryMethod());
        assertEquals("Unexpected Subscription ID allocated", previousId + 1, getNoAckSub.getSubscriptionID());
        previousId = getNoAckSub.getSubscriptionID();

        //create a 0-10 subscription
        ServerConnection conn = new ServerConnection(1);
        ProtocolEngine_0_10 engine = new ProtocolEngine_0_10(conn, new TestNetworkConnection(), getRegistry());
        conn.setVirtualHost(getVirtualHost());
        ServerSessionDelegate sesDel = new ServerSessionDelegate();
        Binary name = new Binary(new byte[]{new Byte("1")});
        ServerSession session = new ServerSession(conn, sesDel, name, 0);

        Subscription sub_0_10 = SubscriptionFactoryImpl.INSTANCE.createSubscription(session, "1", MessageAcceptMode.EXPLICIT,
View Full Code Here

        _delegate = delegate;
    }

    public ProtocolEngine newProtocolEngine(NetworkDriver networkDriver)
    {
        Connection conn = new ServerConnection();
        conn.setConnectionDelegate(_delegate);
        return new ProtocolEngine_0_10(conn, networkDriver);
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.transport.ServerConnection

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.