Package pulp :: Package messaging :: Module base :: Class Container
[hide private]
[frames] | no frames]

Class Container

source code

The stub container base

Instance Methods [hide private]
 
__init__(self, id, producer, **options) source code
 
__setmethod(self, producer)
Set the request method based on options.
source code
 
__addstubs(self)
Add stubs found in the stubs dictionary.
source code
list
__destination(self)
Get the stub destination(s).
source code
bool
__async(self)
Get whether an asynchronous request method should be used based on selected options.
source code
 
__str__(self) source code
Instance Variables [hide private]
str __id
The peer ID.
Options __options
Container options.
pulp.messaging.producer.Producer __producer
An AMQP producer.
[Stub,..] __stubs
A list of Stub objects.
Method Details [hide private]

__init__(self, id, producer, **options)
(Constructor)

source code 
Parameters:

__setmethod(self, producer)

source code 

Set the request method based on options. The selected method is added to options.

Parameters:

__addstubs(self)

source code 

Add stubs found in the stubs dictionary. Each is added as an attribute matching the dictionary key.

__destination(self)

source code 

Get the stub destination(s).

Returns: list
Either a queue destination or a list of queues.

__async(self)

source code 

Get whether an asynchronous request method should be used based on selected options.

Returns: bool
True if async.