|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.server.exchange.MessagingTestConfigProperties
public class MessagingTestConfigProperties
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.
A complete list of the parameters, default values and comments on their usage is provided here: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. |
Responsibilities | Collaborations |
---|---|
Provide the names and defaults of all test parameters. |
Field Summary | |
---|---|
static int |
ACK_MODE_DEFAULT
Defines the default message acknowledgement mode. |
static String |
ACK_MODE_PROPNAME
Holds the name of the property to get the message acknowledgement mode from. |
static String |
BROKER_DEFAULT
Holds the default broker url for the test. |
static String |
BROKER_PROPNAME
Holds the name of the property to get the test broker url from. |
static String |
CONNECTION_DEFAULT
Defeins the default connection configuration. |
static String |
CONNECTION_NAME
Holds the name of the default connection configuration. |
static String |
CONNECTION_PROPNAME
Holds the name of the default connection factory configuration property. |
static org.apache.qpid.junit.extensions.util.ParsedProperties |
defaults
Holds the default configuration properties. |
static int |
DESTINATION_COUNT_DEFAULT
Defines the default number of destinations to ping. |
static String |
DESTINATION_COUNT_PROPNAME
Holds the name of the proeprty to get the destination count from. |
static boolean |
DURABLE_DESTS_DEFAULT
Default value for the durable destinations flag. |
static String |
DURABLE_DESTS_PROPNAME
Holds the name of the property to get the durable destinations flag from. |
static boolean |
DURABLE_SUBSCRIPTION_DEFAULT
Defines the default value of the durable subscriptions flag. |
static String |
DURABLE_SUBSCRIPTION_PROPNAME
Holds the name of the property to get the durable subscriptions flag from, when doing pub/sub messaging. |
static boolean |
EXCLUSIVE_DEFAULT
Defines the default value of the exclusive flag to use when consuming messages. |
static String |
EXCLUSIVE_PROPNAME
Holds the name of the property to set the exclusive flag from. |
static boolean |
IMMEDIATE_DEFAULT
Defines the default value of the immediate flag to use when sending messages. |
static String |
IMMEDIATE_PROPNAME
Holds the name of the property to set the immediate flag from. |
static String |
INITIAL_CONTEXT_FACTORY_DEFAULT
Defines the class to use as the initial context factory by default. |
static String |
INITIAL_CONTEXT_FACTORY_PROPNAME
Holds the name of the property to get the initial context factory name from. |
static boolean |
MANDATORY_DEFAULT
Defines the default value of the mandatory flag to use when sending messages. |
static String |
MANDATORY_PROPNAME
Holds the name of the property to set the mandatory flag from. |
static int |
MAX_PENDING_DEFAULT
Defines the default maximum quantity of pending message data to allow producers to hold. |
static String |
MAX_PENDING_PROPNAME
Holds the name of the property to set the maximum amount of pending message data for a producer to hold. |
static int |
MESSAGE_SIZE_DEAFULT
Used to set up a default message size. |
static String |
MESSAGE_SIZE_PROPNAME
Holds the name of the property to get the test message size from. |
static boolean |
NO_LOCAL_DEFAULT
Defines the default value of the no local flag to use when consuming messages. |
static String |
NO_LOCAL_PROPNAME
Holds the name of the property to set the no local flag from. |
static String |
PASSWORD_DEFAULT
Holds the default broker log on password. |
static String |
PASSWORD_PROPNAME
Holds the name of the property to get the broker access password from. |
static boolean |
PERSISTENT_MODE_DEFAULT
Holds the message delivery mode to use for the test. |
static String |
PERSISTENT_MODE_PROPNAME
Holds the name of the property to get the test delivery mode from. |
static String |
PREFECTH_PROPNAME
Holds the name of the proeprty to set the prefetch size from. |
static int |
PREFETCH_DEFAULT
Defines the default prefetch size to use when consuming messages. |
static boolean |
PUBLISHER_CONSUMER_BIND_DEFAULT
Holds the default value of the publisher consumer flag. |
static String |
PUBLISHER_CONSUMER_BIND_PROPNAME
Holds the name of the property to get the bind publisher procuder flag from. |
static boolean |
PUBLISHER_PRODUCER_BIND_DEFAULT
Holds the default value of the publisher producer flag. |
static String |
PUBLISHER_PRODUCER_BIND_PROPNAME
Holds the name of the property to get the bind publisher procuder flag from. |
static boolean |
PUBSUB_DEFAULT
Holds the pub/sub mode default, true means ping a topic, false means ping a queue. |
static String |
PUBSUB_PROPNAME
Holds the name of the property to get the p2p or pub/sub messaging mode from. |
static int |
RATE_DEFAULT
Defines the default rate (in pings per second) to send pings at. |
static String |
RATE_PROPNAME
Holds the name of the property to get the message rate from. |
static String |
RECEIVE_DESTINATION_NAME_ROOT_DEFAULT
Holds the root of the name of the default destination to send to. |
static String |
RECEIVE_DESTINATION_NAME_ROOT_PROPNAME
Holds the name of the property to get the destination name root from. |
static boolean |
RECEIVER_CONSUMER_BIND_DEFAULT
Holds the default value of the receiver consumer flag. |
static String |
RECEIVER_CONSUMER_BIND_PROPNAME
Holds the name of the property to get the bind receiver procuder flag from. |
static boolean |
RECEIVER_PRODUCER_BIND_DEFAULT
Holds the default value of the receiver producer flag. |
static String |
RECEIVER_PRODUCER_BIND_PROPNAME
Holds the name of the property to get the bind receiver procuder flag from. |
static String |
SELECTOR_DEFAULT
Holds the default message selector. |
static String |
SELECTOR_PROPNAME
Holds the name of the proeprty to get the. |
static String |
SEND_DESTINATION_NAME_ROOT_DEFAULT
Holds the root of the name of the default destination to send to. |
static String |
SEND_DESTINATION_NAME_ROOT_PROPNAME
Holds the name of the property to get the destination name root from. |
static long |
TIMEOUT_DEFAULT
Default time to wait before assuming that a ping has timed out. |
static String |
TIMEOUT_PROPNAME
Holds the name of the property to get the waiting timeout for response messages. |
static boolean |
TRANSACTED_DEFAULT
Holds the transactional mode to use for the test. |
static String |
TRANSACTED_PROPNAME
Holds the name of the property to get the test transactional mode from. |
static int |
TX_BATCH_SIZE_DEFAULT
Defines the default number of pings to send in each transaction when running transactionally. |
static String |
TX_BATCH_SIZE_PROPNAME
Holds the name of the property to get the commit batch size from. |
static String |
USERNAME_DEFAULT
Holds the default broker log on username. |
static String |
USERNAME_PROPNAME
Holds the name of the property to get the broker access username from. |
static boolean |
VERBOSE_DEFAULT
Holds the default verbose mode. |
static String |
VERBOSE_PROPNAME
Holds the name of the property to get the verbose mode proeprty from. |
static String |
VIRTUAL_HOST_DEFAULT
Holds the default virtual path for the test. |
static String |
VIRTUAL_HOST_PROPNAME
Holds the name of the property to get the test broker virtual path. |
Constructor Summary | |
---|---|
MessagingTestConfigProperties()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONNECTION_NAME
public static final String INITIAL_CONTEXT_FACTORY_PROPNAME
public static final String INITIAL_CONTEXT_FACTORY_DEFAULT
public static final String CONNECTION_PROPNAME
public static final String CONNECTION_DEFAULT
public static final String BROKER_PROPNAME
public static final String BROKER_DEFAULT
public static final String VIRTUAL_HOST_PROPNAME
public static final String VIRTUAL_HOST_DEFAULT
public static final String USERNAME_PROPNAME
public static final String USERNAME_DEFAULT
public static final String PASSWORD_PROPNAME
public static final String PASSWORD_DEFAULT
public static final String PUBLISHER_PRODUCER_BIND_PROPNAME
public static final boolean PUBLISHER_PRODUCER_BIND_DEFAULT
public static final String PUBLISHER_CONSUMER_BIND_PROPNAME
public static final boolean PUBLISHER_CONSUMER_BIND_DEFAULT
public static final String RECEIVER_PRODUCER_BIND_PROPNAME
public static final boolean RECEIVER_PRODUCER_BIND_DEFAULT
public static final String RECEIVER_CONSUMER_BIND_PROPNAME
public static final boolean RECEIVER_CONSUMER_BIND_DEFAULT
public static final String SEND_DESTINATION_NAME_ROOT_PROPNAME
public static final String SEND_DESTINATION_NAME_ROOT_DEFAULT
public static final String RECEIVE_DESTINATION_NAME_ROOT_PROPNAME
public static final String RECEIVE_DESTINATION_NAME_ROOT_DEFAULT
public static final String DESTINATION_COUNT_PROPNAME
public static final int DESTINATION_COUNT_DEFAULT
public static final String PUBSUB_PROPNAME
public static final boolean PUBSUB_DEFAULT
public static final String PERSISTENT_MODE_PROPNAME
public static final boolean PERSISTENT_MODE_DEFAULT
public static final String TRANSACTED_PROPNAME
public static final boolean TRANSACTED_DEFAULT
public static final String NO_LOCAL_PROPNAME
public static final boolean NO_LOCAL_DEFAULT
public static final String ACK_MODE_PROPNAME
public static final int ACK_MODE_DEFAULT
public static final String DURABLE_SUBSCRIPTION_PROPNAME
public static final boolean DURABLE_SUBSCRIPTION_DEFAULT
public static final String EXCLUSIVE_PROPNAME
public static final boolean EXCLUSIVE_DEFAULT
public static final String IMMEDIATE_PROPNAME
public static final boolean IMMEDIATE_DEFAULT
public static final String MANDATORY_PROPNAME
public static final boolean MANDATORY_DEFAULT
public static final String DURABLE_DESTS_PROPNAME
public static final boolean DURABLE_DESTS_DEFAULT
public static final String PREFECTH_PROPNAME
public static final int PREFETCH_DEFAULT
public static final String MESSAGE_SIZE_PROPNAME
public static final int MESSAGE_SIZE_DEAFULT
public static final String RATE_PROPNAME
public static final int RATE_DEFAULT
public static final String SELECTOR_PROPNAME
public static final String SELECTOR_DEFAULT
public static final String TIMEOUT_PROPNAME
public static final long TIMEOUT_DEFAULT
public static final String TX_BATCH_SIZE_PROPNAME
public static final int TX_BATCH_SIZE_DEFAULT
public static final String MAX_PENDING_PROPNAME
public static final int MAX_PENDING_DEFAULT
public static final String VERBOSE_PROPNAME
public static final boolean VERBOSE_DEFAULT
public static org.apache.qpid.junit.extensions.util.ParsedProperties defaults
Constructor Detail |
---|
public MessagingTestConfigProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |