edeposit.amqp.alephdaemon module

Standalone daemon providing AMQP communication with Aleph module.

This script can be used as aplication, not just as module:

./alephdaemon start/stop/restart [--foreground]

If --foreground parameter is used, script will not run as daemon, but as normal script at foreground. Without that, only one (true unix) daemon instance will be running at the time.

class edeposit.amqp.alephdaemon.AlephDaemon(connection_param, queue, output_exchange, output_key)[source]

Bases: edeposit.amqp.pikadaemon.PikaDaemon

Pika and Daemon wrapper for handling AMQP connections.

Parameters:
  • connection_param (pika.ConnectionParameters) – object setting the connection
  • queue (str) – name of queue where the daemon should listen
  • output_exchange (str) – name of exchange where the daemon should put responses
  • output_key (str) – routing key for output exchange
onMessageReceived(method_frame, properties, body)[source]
sendResponse(message, UUID)[source]
edeposit.amqp.alephdaemon.getConnectionParameters()[source]
Returns:pika.ConnectionParameters – object set by variables from edeposit.amqp.settings.
edeposit.amqp.alephdaemon.main()[source]

Arguments parsing, etc..

Previous topic

edeposit.amqp package

Next topic

edeposit.amqp.amqp_tool module

This Page