Examples of moveMatchingMessagesTo()


Examples of org.apache.activemq.broker.jmx.QueueViewMBean.moveMatchingMessagesTo()

            } else {
                moveTo = "queue://" + ((Queue) getDestination()).getQueueName();
            }

            LOG.debug("Moving " + messageCount + " messages from ActiveMQ.DLQ to " + moveTo);
            dlqView.moveMatchingMessagesTo("", moveTo);

            assertTrue("DLQ was not emptied as expected", Wait.waitFor(new Wait.Condition() {
                public boolean isSatisified() throws Exception {
                    return dlqView.getQueueSize() == 0;
                }
View Full Code Here

Examples of org.apache.activemq.broker.jmx.QueueViewMBean.moveMatchingMessagesTo()

            } else {
                moveTo = "queue://" + ((Queue) getDestination()).getQueueName();
            }

            LOG.debug("Moving " + messageCount + " messages from ActiveMQ.DLQ to " + moveTo);
            dlqView.moveMatchingMessagesTo("", moveTo);

            assertTrue("DLQ was not emptied as expected", Wait.waitFor(new Wait.Condition() {
                @Override
                public boolean isSatisified() throws Exception {
                    return dlqView.getQueueSize() == 0;
View Full Code Here

Examples of org.apache.activemq.broker.jmx.QueueViewMBean.moveMatchingMessagesTo()

            } else {
                moveTo = "queue://" + ((Queue) getDestination()).getQueueName();
            }

            LOG.debug("Moving " + messageCount + " messages from ActiveMQ.DLQ to " + moveTo);
            dlqView.moveMatchingMessagesTo("", moveTo);

            assertTrue("DLQ was not emptied as expected", Wait.waitFor(new Wait.Condition() {
                @Override
                public boolean isSatisified() throws Exception {
                    return dlqView.getQueueSize() == 0;
View Full Code Here

Examples of org.apache.activemq.broker.region.Queue.moveMatchingMessagesTo()

                new NonCachedMessageEvaluationContext());
        context.setBroker(broker.getBroker());
        context.getMessageEvaluationContext().setDestination(destination);

        long startTimeMillis = System.currentTimeMillis();
        Assert.assertEquals(1, queue
                .moveMatchingMessagesTo(context, "id=" + (QUEUE_SIZE - 1),
                        createDestination(MOVE_TO_DESTINATION_NAME)));

        long durationMillis = System.currentTimeMillis() - startTimeMillis;
View Full Code Here

Examples of org.apache.activemq.broker.region.Queue.moveMatchingMessagesTo()

                new NonCachedMessageEvaluationContext());
        context.setBroker(broker.getBroker());
        context.getMessageEvaluationContext().setDestination(destination);

        long startTimeMillis = System.currentTimeMillis();
        Assert.assertEquals(1, queue
                .moveMatchingMessagesTo(context, "id=" + (QUEUE_SIZE - 1),
                        createDestination(MOVE_TO_DESTINATION_NAME)));

        long durationMillis = System.currentTimeMillis() - startTimeMillis;
View Full Code Here

Examples of org.apache.activemq.broker.region.Queue.moveMatchingMessagesTo()

                new NonCachedMessageEvaluationContext());
        context.setBroker(broker.getBroker());
        context.getMessageEvaluationContext().setDestination(destination);

        long startTimeMillis = System.currentTimeMillis();
        Assert.assertEquals(1, queue
                .moveMatchingMessagesTo(context, "id=" + (QUEUE_SIZE - 1),
                        createDestination(MOVE_TO_DESTINATION_NAME)));

        long durationMillis = System.currentTimeMillis() - startTimeMillis;
View Full Code Here

Examples of org.apache.activemq.broker.region.Queue.moveMatchingMessagesTo()

                new NonCachedMessageEvaluationContext());
        context.setBroker(broker.getBroker());
        context.getMessageEvaluationContext().setDestination(destination);

        long startTimeMillis = System.currentTimeMillis();
        Assert.assertEquals(1, queue
                .moveMatchingMessagesTo(context, "id=" + (QUEUE_SIZE - 1),
                        createDestination(MOVE_TO_DESTINATION_NAME)));

        long durationMillis = System.currentTimeMillis() - startTimeMillis;
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.