Class DaemonKit::RuoteParticipants
In: lib/daemon_kit/ruote_participants.rb
Parent: Object

Class that cleanly abstracts away the different remote participants in ruote and allows daemon writers to just worry about processing workitems without worrying over the transport mechanism or anything else…

Methods

configure   configure   instance   new   register   run   run   use  

Attributes

participants  [R] 

Public Class methods

Configure this daemon as a remote participant to ruote.

Activate and run the remote participant code, calling the optional block for additional daemon logic.

Public Instance methods

Yields self and configures the remote participants

Register classes as pseudo-participants. Two styles of registration are supported:

  register( Foo )
  register( 'short', ShortParticipant )

The first format uses the class name (downcased and underscored) as the key for identifying the pseudo-participant, the second uses the the provided key.

Pseudo-participant classes are instantiated when registered, and the instances are re-used.

Run the participants

Enable the use of a specific transport for workitems. Can be :amqp to use the AMQPParticipant/AMQPListener pair in ruote.

[Validate]