Package gofer :: Package rmi :: Module container :: Class Container
[hide private]
[frames] | no frames]

Class Container

source code

The stub container

Instance Methods [hide private]
 
__init__(self, uuid, producer, **options) source code
list
__destination(self)
Get the stub destination(s).
source code
Stub
__getattr__(self, name)
Get a stub by name.
source code
Stub
__getitem__(self, name)
Get a stub by name.
source code
 
__str__(self) source code
 
__repr__(self) source code
Instance Variables [hide private]
str __id
The peer ID.
Options __options
Container options.
gofer.messaging.producer.Producer __producer
An AMQP producer.
Method Details [hide private]

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

source code 
Parameters:
  • uuid (str) - The peer ID.
  • producer (gofer.messaging.producer.Producer) - An AMQP producer.
  • options (dict) - keyword options. Options:
    • async : Indicates that requests asynchronous. Default = False
    • ctag : The asynchronous correlation tag. When specified, it implies all requests are asynchronous.
    • window : The request window. See Window. Default = any time.
    • secret : A shared secret used for request authentication.
    • timeout : The request timeout (seconds). Default = (10,90) seconds.

__destination(self)

source code 

Get the stub destination(s).

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

__getattr__(self, name)
(Qualification operator)

source code 

Get a stub by name.

Parameters:
  • name (str) - The name of a stub class.
Returns: Stub
A stub object.

__getitem__(self, name)
(Indexing operator)

source code 

Get a stub by name.

Parameters:
  • name (str) - The name of a stub class.
Returns: Stub
A stub object.