Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This utility can be used to create queues exchanges and bindings, both durable and transient. Always check for latest options by running --help command.

Code Block
$ ./qpid-config --help
Usage:  qpid-config [OPTIONS]
        qpid-config [OPTIONS] exchanges [filter-string]
        qpid-config [OPTIONS] queues    [filter-string]
        qpid-config [OPTIONS] add exchange <type> <name> [AddExchangeOptions]
        qpid-config [OPTIONS] del exchange <name>
        qpid-config [OPTIONS] add queue <name> [AddQueueOptions]
        qpid-config [OPTIONS] del queue <name>
        qpid-config [OPTIONS] bind   <exchange-name> <queue-name> [binding-key]
        qpid-config [OPTIONS] unbind <exchange-name> <queue-name> [binding-key]

Options:
    -b [ --bindings ]                         Show bindings in queue or exchange list
    -a [ --broker-addr ] Address (localhost)  Address of qpidd broker
         broker-addr is in the form:   [username/password@] hostname | ip-address [:<port>]
         ex:  localhost, 10.1.1.7:10000, broker-host:10000, guest/guest@localhost

Add Queue Options:
  -s [ --spec-file]durable Path (/usr/share/amqp/amqp.0-10-preview.xml)
          Queue is durable
    --cluster-durable    Queue becomes durable if there is only one functioning cluster node
    --file-count N (8)   Number of files in queue's   AMQP specification file
Add Queue Options:
persistence journal
     --file-durablesize  N (24)  File size in    Queue is durable

Add Exchange Options:
    --durable           Exchange is durable

Get the summary page

Code Block

./qpid-config
Total Exchanges: 6
          topic: 2
        headers: 1
         fanout: 1
         direct: 2
   Total Queues: 7
        durable: 0
    non-durable: 7

List the queues

Code Block

$ ./qpid-config  queues
                                      Store Size
Durable  AutoDel  Excl  Bindings  (files x file pages)  Queue Name
===========================================================================================
   N        N      N         1                          pub_start
   N pages (64Kib/page)
    --max-queue-size N   Maximum in-memory queue size as bytes
    --max-queue-count N  Maximum in-memory queue size as a number of messages
    --policy-type TYPE   Action taken when queue limit is reached (reject, flow_to_disk, ring, ring_strict)
    --last-value-queue   Enable LVQ behavior on the queue
    --optimistic-consume Enable optimistic consume on the queue

Add Exchange Options:
    --durable    Exchange is durable
    --sequence   Exchange will insert a 'qpid.msg_sequence' field in the message header
       N      N    with a value that increments 1for each message forwarded.
    --ive        Exchange will behave as an 'initial-value-exchange', keeping a reference
   pub_done
   N        N   to the last Nmessage forwarded and enqueuing that message to newly bound
 1                queues.

Get the summary page

Code Block

$ qpid-config
Total Exchanges: 6
       sub_ready
   Ntopic: 2
       N headers: 1
    N     fanout: 1
   1      direct: 2
   Total Queues: 7
        durable: 0
    non-durable: 7

List the queues

Code Block

$ qpid-config queues
Queue Name sub_done
   N        N      N         1                          perftest0
   NAttributes
=================================================================
pub_start           Y      N         2                          mgmt-3206ff16-fb29-4a30-82ea-e76f50dd7d15

pub_done   N        Y      N         2                      
sub_ready    repl-3206ff16-fb29-4a30-82ea-e76f50dd7d15
   N        Y      N         2    
sub_done                      mgmt-df06c7a6-4ce7-426a-9f66-da91a2a6a837
   N        Y  
perftest0    N         2                      --durable
reply-dhcp-100-18-254.bos.redhat.com.20713    repl-df06c7a6-4ce7-426a-9f66-da91a2a6a837auto-del excl
topic-dhcp-100-18-254.bos.redhat.com.20713  auto-del excl

List the exchanges with bindings

...