Bases: object
Represents the mapping between queues and pool drivers.
Removes a queue from the pool catalog.
Call this method after successfully deleting it from a backend pool.
Parameters: |
|
---|
Lookup the claim controller for the given queue and project.
Parameters: |
|
---|---|
Returns: | The claim controller associated with the data driver for the pool containing (queue, project) or None if this doesn’t exist. |
Return type: | Maybe ClaimController |
Get storage driver, preferably cached, from a pool name.
Parameters: | pool_id (six.text_type) – The name of a pool. |
---|---|
Returns: | a storage driver |
Return type: | zaqar.storage.base.DataDriver |
Lookup the message controller for the given queue and project.
Parameters: |
|
---|---|
Returns: | The message controller associated with the data driver for the pool containing (queue, project) or None if this doesn’t exist. |
Return type: | Maybe MessageController |
Lookup the queue controller for the given queue and project.
Parameters: |
|
---|---|
Returns: | The queue controller associated with the data driver for the pool containing (queue, project) or None if this doesn’t exist. |
Return type: | Maybe QueueController |
Lookup the subscription controller for the given queue and project.
Parameters: |
|
---|---|
Returns: | The subscription controller associated with the data driver for the pool containing (queue, project) or None if this doesn’t exist. |
Return type: | Maybe SubscriptionController |
Lookup a pool driver for the given queue and project.
Parameters: |
|
---|---|
Returns: | A storage driver instance for the appropriate pool. If the driver does not exist yet, it is created and cached. If the queue is not mapped, returns None. |
Return type: | Maybe DataDriver |
Register a new queue in the pool catalog.
This method should be called whenever a new queue is being created, and will create an entry in the pool catalog for the given queue.
After using this method to register the queue in the catalog, the caller should call lookup() to get a reference to a storage driver which will allow interacting with the queue’s assigned backend pool.
Parameters: |
|
---|---|
Raises: | NoPoolFound |
Bases: zaqar.storage.base.Claim
Routes operations to a claim controller in the appropriate pool.
Parameters: | pool_catalog (queues.pooling.base.Catalog) – a catalog of available pools |
---|
Bases: zaqar.storage.base.DataDriverBase
Pooling meta-driver for routing requests to multiple backends.
Parameters: |
|
---|
Bases: zaqar.storage.base.Message
Routes operations to a message controller in the appropriate pool.
Parameters: | pool_catalog (queues.pooling.base.Catalog) – a catalog of available pools |
---|
Bases: zaqar.storage.base.Queue
Routes operations to a queue controller in the appropriate pool.
Parameters: | pool_catalog (queues.pooling.base.Catalog) – a catalog of available pools |
---|
Bases: zaqar.storage.base.Subscription
Controller to facilitate processing for subscription operations.