Messages management operations

Registered by Victoria Martinez de la Cruz on 2013-07-03

Marconi client should provide a simple interface for a user to post, get and delete messages from different 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:
milestone icon icehouse-2
Started by
Flavio Percoco on 2013-12-10
Completed by
Kurt Griffiths on 2014-05-06

Related branches

Sprints

Whiteboard

>> queue.messages() - Optional params: limit, echo
(<Message ...>, <Message ...>)

>> queue.messages.next - Gets the next set of messages from the previous marker. - Optional params: limit & echo
(<Message ...>, <Message ...>)

>> queue.messages_by_id([1, 10, 100])
[<Messages ...>, ...]

>> msg = queue.message_by_id(1) - Optional param: claim_id

>> msg.queue looks loop-y
<Queue ...>

>> msg.age
770

>> msg.ttl
800

>> msg.id # gathered from href
u'50b68a50d6f5b8c8a7c62b01
'
>> msg.body
{'event': 'buy_one_get_one', 'date': 'Mar. 10, 2015 1:23:15'}

>> queue.post([msg, msg, msg]) # creates three new messages

>> queue.delete_messages([id1, id2, id3])

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

Addressed by: https://review.openstack.org/37140
    Implement message controller.

Addressed by: https://review.openstack.org/45439
    Update tox.ini and setup.cfg

Gerrit topic: https://review.openstack.org/#q,topic:client-structure,n,z

Addressed by: https://review.openstack.org/46234
    Implement message controller.

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

Addressed by: https://review.openstack.org/52389
    Bootstrap Messages support

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.