Queues management operations

Registered by Victoria Martinez de la Cruz

Marconi client should provide a simple interface for a user to create, destroy, update and list queues, and also to get metadata and stats from those queues.

Blueprint information

Status:
Complete
Approver:
Flavio Percoco
Priority:
Undefined
Drafter:
Flavio Percoco
Direction:
Needs approval
Assignee:
Flavio Percoco
Definition:
New
Series goal:
Accepted for icehouse
Implementation:
Implemented
Milestone target:
None
Started by
Flavio Percoco
Completed by
Flavio Percoco

Related branches

Sprints

Whiteboard

# Working with queues

>> queue = client.create_queue(name='megapipes', metadata={
    'fizz': 'buzz',
    'size': 'extra-large'
    })

>> client.queues # list queue, generator return Optional params : limit
(<Queue ...>, <Queue ...>, ...)

>> client.queues.next() #list queues with the href returned from previous list queue. Uses the marker in href. Optional params : limit

>> client.detailed_queues # generator return Optional params : limit
(<Queue ...>, <Queue ...>, ...)

>> queue.name # as per below - no renames, read-only property
u'megapipes'

>> queue.metadata
{
    'fizz': 'buzz',
    'size': 'extra-large'
    }

>> queue.stats
{
    'stat1': 123497,
    'stat2': 923,
    'stat_metrical': {
        'speed': 100,
        'bytes': 1025
    }
}

>> queue.put() # posts all changes to marconi server - Single call for all creates & updates
>> queue.delete() # sends DELETE to marconi server for this queue

Gerrit topic: https://review.openstack.org/#q,topic:bp/queues-management,n,z

Addressed by: https://review.openstack.org/38356
    feat(Implement Queue Controller):

Addressed by: https://review.openstack.org/40863
    feat(controller) : Implement Queue Controller

Gerrit topic: https://review.openstack.org/#q,topic:python-marconiclient-v1,n,z

Addressed by: https://review.openstack.org/50638
    Implement queue's API methods

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.