[storm] Questions about DeferredStores on twisted-storm branch

Oscar Campos oscar.campos at open-phoenix.com
Mon Apr 26 23:03:37 BST 2010


Ty very much for the quick reply.

I see.

Btw, is DeferredStore meant to be threadsafe?

2010/4/26 Thomas Hervé <thomas.herve at canonical.com>

> Le lundi 26 avril 2010 à 21:50 +0200, Oscar Campos a écrit :
> > Greetings,
> >
> > This is my first post on this list, so hi everybody!.
> >
> > I have some questions about DeferredStores on twsited-storm branch
> > from Thomas Herve. I did read the numerous tests located under
> > tests/twisted, I also pass all of them with an ok result. My questions
> > are related about some things I did see at tests/twisted/base.py.
> > On this file we got a DeferredStoreTest object's method called
> > test_remove, this method just try to remove the Foo table register id
> > 10 and hit an assert about the removed register is None when done.
> > This is all clear but... there is not a remove method on DeferredStore
> > class (just looking at the API docs). Are those remove, rollback,
> > reload, commit and flush missing methods on DeferredStore just mapped
> > to any delegate Store object elsewhere?
>
> Hello!
>
> Indeed, a bunch of methods are wrapped dynamically once the
> DeferredStore object is created: commit, flush, remove, reload,
> rollback. Those methods will call the corresponding Store methods in a
> thread and returned a Deferred which will fire with the result, if any.
>
> --
> Thomas
>
>


-- 
Oscar Campos Ruiz-Adame -oscar.campos at open-phoenix.com
Consultor - Consultant
Open Phoenix IT Consultoría Tecnológica - IT Consulting
_________________________________________________
Tel. +34 644569088
http://www.open-phoenix.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/storm/attachments/20100427/d688de5d/attachment-0001.htm 


More information about the storm mailing list