factory.setUri(uri);
factory.setRequestedFrameMax(frameMax);
factory.setRequestedHeartbeat(heartbeat);
MulticastParams p = new MulticastParams();
p.setAutoAck( autoAck);
p.setAutoDelete( true);
p.setConfirm( confirm);
p.setConsumerCount( consumerCount);
p.setConsumerMsgCount( consumerMsgCount);
p.setConsumerRateLimit(consumerRateLimit);
p.setConsumerTxSize( consumerTxSize);
p.setExchangeName( exchangeName);
p.setExchangeType( exchangeType);
p.setFlags( flags);
p.setMultiAckEvery( multiAckEvery);
p.setMinMsgSize( minMsgSize);
p.setPredeclared( predeclared);
p.setConsumerPrefetch( consumerPrefetch);
p.setChannelPrefetch( channelPrefetch);
p.setProducerCount( producerCount);
p.setProducerMsgCount( producerMsgCount);
p.setProducerTxSize( producerTxSize);
p.setQueueName( queueName);
p.setRoutingKey( routingKey);
p.setRandomRoutingKey( randomRoutingKey);
p.setProducerRateLimit(producerRateLimit);
p.setTimeLimit( timeLimit);
MulticastSet set = new MulticastSet(stats, factory, p);
set.run(true);
stats.printFinal();