summaryrefslogtreecommitdiff
path: root/qpid/doc/book
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2012-02-22 16:41:55 +0000
committerTed Ross <tross@apache.org>2012-02-22 16:41:55 +0000
commit3314a5cb4d14e94ed8fa29a1ba6348d10d27fdcf (patch)
tree52ddc4ee1c0424de91ded89b1cc27884cfa58134 /qpid/doc/book
parent99104dde3f0718b4f9a3aff3427bab6a818fb41b (diff)
downloadqpid-python-3314a5cb4d14e94ed8fa29a1ba6348d10d27fdcf.tar.gz
QPID-3851 - Unified common CLI options for qpid-config and qpid-stat.
Also in this commit: qpid-config was converted to use the messaging-based qmf2 library. It no longer has a dependency on the qmf library. The CLI tests were also ported to the faster library. CLI test time prior to this commit: 2 minutes 12 seconds CLI test time after this commit: 12.5 seconds Other items in qpid-config and qpid-stat: - The deprecated LVQ options (lqv, lqv-no-browse) were removed from qpid-config. - A new option, --lvq-key, was added to qpid-config to support the new LVQ configuration. The docs and tests were updated to match. - qpid-stat was updated so that 'qpid-stat -q <queue-name>' prints full details from the specified queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292388 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/doc/book')
-rw-r--r--qpid/doc/book/src/LVQ.xml11
1 files changed, 5 insertions, 6 deletions
diff --git a/qpid/doc/book/src/LVQ.xml b/qpid/doc/book/src/LVQ.xml
index 4e818881ad..b57c6268be 100644
--- a/qpid/doc/book/src/LVQ.xml
+++ b/qpid/doc/book/src/LVQ.xml
@@ -117,7 +117,7 @@
qpid-config utility:
</para>
<programlisting>
- $ qpid-config add queue prices --argument qpid.last_value_queue_key=ticker
+ $ qpid-config add queue prices --lvq-key ticker
</programlisting>
</section>
</section>
@@ -131,13 +131,13 @@
from qpid.messaging import Connection, Message
def send(sender, key, message):
- message.properties["key"] = key
+ message.properties["ticker"] = key
sender.send(message)
conn = Connection("localhost")
conn.open()
sess = conn.session()
- tx = sess.sender("topic;{create:always, node:{type:queue,x-declare:{arguments:{'qpid.last_value_queue_key':key}}}}")
+ tx = sess.sender("prices;{create:always, node:{type:queue,x-declare:{arguments:{'qpid.last_value_queue_key':ticker}}}}")
msg = Message("Content")
send(tx, "key1", msg);
@@ -155,12 +155,11 @@
<title>LVQ Browsing Receiver</title>
<programlisting>
from qpid.messaging import Connection, Message
- from time import sleep
conn = Connection("localhost")
conn.open()
sess = conn.session()
- rx = sess.receiver("topic;{mode:browse}")
+ rx = sess.receiver("prices;{mode:browse}")
while True:
msg = rx.fetch()
@@ -176,7 +175,7 @@
There are two legacy modes (still implemented as of Qpid 0.14)
controlled by the qpid.last_value_queue and
qpid.last_value_queue_no_browse argument values. These modes are
- intended to be deprecated and should not be used.
+ deprecated and should not be used.
</para>
</section>
</section>