@@ -63,6 +63,7 @@ public static void main(String[] args) {
6363 String queueNames = strArg (cmd , 'u' , null );
6464 String routingKey = strArg (cmd , 'k' , null );
6565 boolean randomRoutingKey = cmd .hasOption ('K' );
66+ boolean skipBindingQueues = cmd .hasOption ("sb" );
6667 int samplingInterval = intArg (cmd , 'i' , 1 );
6768 float producerRateLimit = floatArg (cmd , 'r' , 0.0f );
6869 float consumerRateLimit = floatArg (cmd , 'R' , 0.0f );
@@ -78,6 +79,7 @@ public static void main(String[] args) {
7879 int channelPrefetch = intArg (cmd , 'Q' , 0 );
7980 int consumerPrefetch = intArg (cmd , 'q' , 0 );
8081 int minMsgSize = intArg (cmd , 's' , 0 );
82+ boolean slowStart = cmd .hasOption ('S' );
8183 int timeLimit = intArg (cmd , 'z' , 0 );
8284 int producerMsgCount = intArg (cmd , 'C' , 0 );
8385 int consumerMsgCount = intArg (cmd , 'D' , 0 );
@@ -154,6 +156,7 @@ public void run() {
154156 p .setConsumerMsgCount ( consumerMsgCount );
155157 p .setConsumerRateLimit ( consumerRateLimit );
156158 p .setConsumerTxSize ( consumerTxSize );
159+ p .setConsumerSlowStart ( slowStart );
157160 p .setExchangeName ( exchangeName );
158161 p .setExchangeType ( exchangeType );
159162 p .setFlags ( flags );
@@ -168,6 +171,7 @@ public void run() {
168171 p .setProducerTxSize ( producerTxSize );
169172 p .setQueueNames ( queueNames == null ? null : asList (queueNames .split ("," )));
170173 p .setRoutingKey ( routingKey );
174+ p .setSkipBindingQueues ( skipBindingQueues );
171175 p .setRandomRoutingKey ( randomRoutingKey );
172176 p .setProducerRateLimit ( producerRateLimit );
173177 p .setTimeLimit ( timeLimit );
@@ -233,11 +237,13 @@ private static Options getOptions() {
233237 options .addOption (new Option ("u" , "queue" , true , "queue name" ));
234238 options .addOption (new Option ("k" , "routing-key" , true , "routing key" ));
235239 options .addOption (new Option ("K" , "random-routing-key" , false ,"use random routing key per message" ));
240+ options .addOption (new Option ("sb" , "skip-binding-queues" , false ,"don't bind queues to the exchange" ));
236241 options .addOption (new Option ("i" , "interval" , true , "sampling interval in seconds" ));
237242 options .addOption (new Option ("r" , "rate" , true , "producer rate limit" ));
238243 options .addOption (new Option ("R" , "consumer-rate" , true , "consumer rate limit" ));
239244 options .addOption (new Option ("x" , "producers" , true , "producer count" ));
240245 options .addOption (new Option ("y" , "consumers" , true , "consumer count" ));
246+ options .addOption (new Option ("S" , "slow-start" , false ,"start consumers slowly (1 sec delay between each)" ));
241247 options .addOption (new Option ("X" , "producer-channel-count" , true , "channels per producer" ));
242248 options .addOption (new Option ("Y" , "consumer-channel-count" , true , "channels per consumer" ));
243249 options .addOption (new Option ("m" , "ptxsize" , true , "producer tx size" ));
0 commit comments