Package org.apache.qpid.framing

Examples of org.apache.qpid.framing.AMQShortString.asString()


        }

        final AMQDestination amqd = (AMQDestination) destination;

        final AMQShortString encodedDestination = amqd.getEncodedName();
        _destinationCache.put(encodedDestination.asString(), destination);
        getContentHeaderProperties().setReplyTo(encodedDestination);
    }

    public Destination getJMSDestination() throws JMSException
    {
View Full Code Here


                try
                {
                    AMQTopic t = new AMQTopic(qpidTopic.getAddress());
                    AMQShortString queueName = getDurableTopicQueueName(subscriptionName, connection);
                    // link is never null if dest was created using an address string.
                    t.getLink().setName(queueName.asString());
                    t.getLink().getSubscriptionQueue().setAutoDelete(false);
                    t.getLink().setDurable(true);

                    // The legacy fields are also populated just in case.
                    t.setQueueName(queueName);
View Full Code Here

            AMQShortString exchangeName = _currentMessage.getExchangeName();
            AMQShortString routingKey = _currentMessage.getMessagePublishInfo().getRoutingKey();

            getVirtualHost().getEventLogger().message(
                    ExchangeMessages.DISCARDMSG(exchangeName == null ? null : exchangeName.asString(),
                                                routingKey == null ? null : routingKey.asString()));
        }
    }

    private String currentMessageDescription()
    {
View Full Code Here

       
        TransactionLogResource mockQueue = new TransactionLogResource()
        {
            public String getResourceName()
            {
                return mockQueueName.asString();
            }
        };
       
        MessageStore.Transaction txn = log.newTransaction();
       
View Full Code Here

       
        TransactionLogResource mockQueue = new TransactionLogResource()
        {
            public String getResourceName()
            {
                return mockQueueName.asString();
            }
        };
       
        MessageStore.Transaction txn = log.newTransaction();
       
View Full Code Here

       
        TransactionLogResource mockQueue = new TransactionLogResource()
        {
            public String getResourceName()
            {
                return mockQueueName.asString();
            }
        };
       
        MessageStore.Transaction txn = log.newTransaction();
       
View Full Code Here

            // add delivery entry to database
            TransactionLogResource mockQueue = new TransactionLogResource()
            {
                public String getResourceName()
                {
                    return queueName.asString();
                }
            };

            EnqueableMessage mockMessage = new EnqueableMessage()
            {
View Full Code Here

            QueueEntryKey entryKey = (QueueEntryKey) _queueEntryTB.entryToObject(key);
            Long messageId = entryKey.getMessageId();
            AMQShortString queueName = entryKey.getQueueName();
            if (!_existingQueues.contains(queueName))
            {
                String name = queueName.asString();
                HashSet<Long> messages = _phantomMessageQueues.get(name);
                if (messages == null)
                {
                    messages = new HashSet<Long>();
                    _phantomMessageQueues.put(name, messages);
View Full Code Here

                   
                    // if the queue is bound to the exchange but NOT for this topic and selector, then the JMS spec
                    // says we must trash the subscription.
                    boolean isQueueBound = isQueueBound(dest.getExchangeName(), dest.getAMQQueueName());
                    boolean isQueueBoundForTopicAndSelector =
                                isQueueBound(dest.getExchangeName().asString(), dest.getAMQQueueName().asString(), topicName.asString(), args);

                    if (isQueueBound && !isQueueBoundForTopicAndSelector)
                    {
                        deleteQueue(dest.getAMQQueueName());
                    }
View Full Code Here

            for(QueueEntryKey entry : entries)
            {
                AMQShortString queueName = entry.getQueueName();
                long messageId = entry.getMessageId();

                qerh.queueEntry(queueName.asString(),messageId);
            }
        }
        catch (DatabaseException e)
        {
            _log.error("Database Error: " + e.getMessage(), e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.