Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
images
README
bluebubble96.png
broker
bubble96.png
button.png
button255.png
button96.png
client
common.py
controller
demo
demo-nodes
demo-users
fast.log
interop.log
permutations.log
permute
probe
proprietary.log
replay
script
slow.log
viewer

README

The scripts in this directory require the python amqp implementation
(the parent of the directory containing this README) to be in the
PYTHONPATH. This can be done with:

  export PYTHONPATH=<path_to_amqp>

Note that this file is found at <path_to_amqp>/demo/README.

The demo directory contains the following scripts:

  broker     -- a simple shell script to start the control broker
  controller -- the demo controller application
  client     -- the demo client application
  demo       -- a control script used to trigger actions

To use the demo take the following steps:

  1. Start the control broker, e.g.:

    ./broker -t frm

  2. Start the controller application, e.g.:

    ./controller

  3. Start as many client applications as you like. These should
     announce their presence to the controller via the control queue.
     The python client application can be started thusly:

    ./client

  4. Use the demo app to create links and send messages:

    ./demo create-link node1 ref=blah role=sender host=0.0.0.0 port=5672 user=demo password=demo
    ./demo send-message blah m1
    ./demo send-message blah m2
    ./demo send-message blah m3
    ./demo create-link node1 ref=bleh role=receiver host=0.0.0.0 port=5672 user=demo password=demo

The controller and client apps will print useful info on stdout when
interesting stuff happen. You can access the usage for any of the
scripts by using the -h option, e.g.:

  ./controller -h
Something went wrong with that request. Please try again.