Package org.apache.qpid.disttest.message

Examples of org.apache.qpid.disttest.message.ProducerParticipantResult


        return consumerParticipantResult;
    }

    public ProducerParticipantResult createForProducer(String participantName, String clientRegisteredName, CreateProducerCommand command, int acknowledgeMode, int numberOfMessagesSent, int payloadSize, long totalPayloadSent, Date start, Date end)
    {
        final ProducerParticipantResult producerParticipantResult = new ProducerParticipantResult();

        producerParticipantResult.setStartDelay(command.getStartDelay());
        producerParticipantResult.setDeliveryMode(command.getDeliveryMode());
        producerParticipantResult.setPriority(command.getPriority());
        producerParticipantResult.setInterval(command.getInterval());
        producerParticipantResult.setTimeToLive(command.getTimeToLive());
        producerParticipantResult.setTotalNumberOfConsumers(0);
        producerParticipantResult.setTotalNumberOfProducers(1);


        setTestProperties(producerParticipantResult, command, participantName, clientRegisteredName, acknowledgeMode);

        setTestResultProperties(producerParticipantResult, numberOfMessagesSent, payloadSize, totalPayloadSent, start, end);
View Full Code Here


        ConsumerParticipantResult consumer1 = (ConsumerParticipantResult) test1ParticipantResults.get(0);
        assertEquals(3, consumer1.getNumberOfMessagesProcessed());
        assertEquals(true, consumer1.isSynchronousConsumer());

        ProducerParticipantResult producer1 = (ProducerParticipantResult) test1ParticipantResults.get(3);
        assertEquals(9, producer1.getNumberOfMessagesProcessed());
        assertEquals(2, producer1.getBatchSize());
        assertEquals(50, producer1.getInterval());
    }
View Full Code Here

        int totalNumberOfConsumers = 0;
        int totalNumberOfProducers = 1;

        int acknowledgeMode = 1;

        ProducerParticipantResult result = _participantResultFactory.createForProducer(PARTICIPANT_NAME,
                                                                                       REGISTERED_CLIENT_NAME,
                                                                                       command,
                                                                                       acknowledgeMode,
                                                                                       NUMBER_OF_MESSAGES_PROCESSED,
                                                                                       PAYLOAD_SIZE,
                                                                                       TOTAL_PAYLOAD_PROCESSED,
                                                                                       START, END);

        assertCommonResultProperties(result);

        assertEquals(deliveryMode, result.getDeliveryMode());
        assertEquals(acknowledgeMode, result.getAcknowledgeMode());
        assertEquals(priority, result.getPriority());
        assertEquals(producerInterval, result.getInterval());
        assertEquals(producerStartDelay, result.getStartDelay());
        assertEquals(timeToLive, result.getTimeToLive());
        assertEquals(totalNumberOfConsumers, result.getTotalNumberOfConsumers());
        assertEquals(totalNumberOfProducers, result.getTotalNumberOfProducers());
    }
View Full Code Here

    }
    public void testProducerPrecedesConsumerParticipants() throws Exception
    {
        assertCompare(
                new ProducerParticipantResult(),
                new ConsumerParticipantResult());
    }
View Full Code Here

    }

    public void testProducerPrecedesAllProducersResult()
    {
        assertCompare(
                new ProducerParticipantResult("participantName"),
                new ParticipantResult(TestResultAggregator.ALL_PRODUCER_PARTICIPANTS_NAME));
    }
View Full Code Here

        ConsumerParticipantResult consumerResult2 = new ConsumerParticipantResult();
        setPropertiesOn(consumerResult2, TEST1_NAME, TEST1_ITERATION_NUMBER, CONSUMER_PARTICIPANT_NAME2, NUMBER_OF_MESSAGES_PROCESSED_PER_CONSUMER, BATCH_SIZE, PAYLOAD_SIZE, TOTAL_PAYLOAD_PROCESSED_PER_CONSUMER, CONSUMER2_STARTDATE, CONSUMER2_ENDDATE, 1, 0);
        testResult.addParticipantResult(consumerResult2);

        ParticipantResult producerResult = new ProducerParticipantResult();
        setPropertiesOn(producerResult, TEST1_NAME, TEST1_ITERATION_NUMBER, PRODUCER_PARTICIPANT_NAME, NUMBER_OF_MESSAGES_PRODUCED, BATCH_SIZE, PAYLOAD_SIZE, TOTAL_PAYLOAD_PRODUCED_IN_TOTAL, PRODUCER_STARTDATE, PRODUCER_ENDDATE, 0, 1);
        testResult.addParticipantResult(producerResult);

        return testResult;
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.disttest.message.ProducerParticipantResult

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.