/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.qpid.server.exchange;
import org.apache.qpid.jms.Session;
import org.apache.qpid.junit.extensions.util.ParsedProperties;
/**
* MessagingTestConfigProperties defines a set of property names and default values for specifying a messaging topology,
* and test parameters for running a messaging test over that topology. A Properties object holding some of these
* properties, superimposed onto the defaults, is used to establish test topologies and control test behaviour.
*
*
Parameters
* Parameter | Default | Comments
* |
---|
messageSize | 0 | Message size in bytes. Not including any headers.
* |
destinationName | ping | The root name to use to generate destination names to ping.
* |
persistent | false | Determines whether peristent delivery is used.
* |
transacted | false | Determines whether messages are sent/received in transactions.
* |
broker | tcp://localhost:5672 | Determines the broker to connect to.
* |
virtualHost | test | Determines the virtual host to send all ping over.
* |
rate | 0 | The maximum rate (in hertz) to send messages at. 0 means no limit.
* |
verbose | false | The verbose flag for debugging. Prints to console on every message.
* |
pubsub | false | Whether to ping topics or queues. Uses p2p by default.
* |
username | guest | The username to access the broker with.
* |
password | guest | The password to access the broker with.
* |
selector | null | Not used. Defines a message selector to filter pings with.
* |
destinationCount | 1 | The number of receivers listening to the pings.
* |
timeout | 30000 | In milliseconds. The timeout to stop waiting for replies.
* |
commitBatchSize | 1 | The number of messages per transaction in transactional mode.
* |
uniqueDests | true | Whether each receiver only listens to one ping destination or all.
* |
durableDests | false | Whether or not durable destinations are used.
* |
ackMode | AUTO_ACK | The message acknowledgement mode. Possible values are:
* 0 - SESSION_TRANSACTED
* 1 - AUTO_ACKNOWLEDGE
* 2 - CLIENT_ACKNOWLEDGE
* 3 - DUPS_OK_ACKNOWLEDGE
* 257 - NO_ACKNOWLEDGE
* 258 - PRE_ACKNOWLEDGE
* |
maxPending | 0 | The maximum size in bytes, of messages sent but not yet received.
* Limits the volume of messages currently buffered on the client
* or broker. Can help scale test clients by limiting amount of buffered
* data to avoid out of memory errors.
* |
*
*