| Home | Trees | Index | Help |
|
|---|
| Package amplee :: Package indexer :: Class Indexer |
|
object --+
|
Indexer
| Method Summary | |
|---|---|
This class is the manager of your index handlers. | |
Unqueue up to `self.batch` number of members from the global queue and apply all the index handlers. | |
Indexes the provided member | |
Registers a new index handler. | |
Returns the index handler per its name | |
Shutdown all the associated index container | |
Convenient way to start a daemon timer that will process the queue of indexable members. | |
Stops the daemon timer | |
Returns teh given Set as a dictionnary of the form: | |
Removes an index handler | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Method Details |
|---|
__init__(self,
batch=5)
|
apply_all(self)Unqueue up to `self.batch` number of members from the global queue and apply all the index handlers. A handler only needs to be a class that implements a method named `update` and taking the `member` as its unique parameter. |
process(self, member)Indexes the provided member |
register(self, index)Registers a new index handler. |
retrieve(self, name)Returns the index handler per its name |
shutdown(self)Shutdown all the associated index container |
start_daemon(self, interval=60.0)Convenient way to start a daemon timer that will process the queue of indexable members. Note that if you try to start it before it was stopped an error will be raised. |
stop_daemon(self)Stops the daemon timer |
to_dict(self, result)Returns teh given Set as a dictionnary of the form: {collection_name: [member_ids]} |
unregister(self, index)Removes an index handler |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Jul 19 15:32:16 2007 | http://epydoc.sf.net |