Home | Trees | Index | Help |
---|
Package lightmediascanner :: Module c_lightmediascanner :: Class LightMediaScanner |
|
object
--+
|
LightMediaScanner
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
__repr__(...)
| |
__str__(...)
| |
Add charset to list of supported input charsets/encoding. | |
Del charset from list of supported input charsets/encoding. | |
Check (and update) files under directory. | |
int |
|
int |
|
bool |
|
Parser
|
Add a new plugin/parser based on it's whole path to shared object. |
Delete a plugin/parser. | |
Parser
|
Add a new plugin/parser based on it's name. |
Process directory recursively. | |
Set the number of transactions between commits. | |
Set maximum time a parser may use. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
getset_descriptor |
commit_interval = <attribute 'commit_interval' of 'light...
|
member_descriptor |
db_path = <member 'db_path' of 'lightmediascanner.c_ligh...
|
member_descriptor |
parsers = <member 'parsers' of 'lightmediascanner.c_ligh...
|
getset_descriptor |
slave_timeout = <attribute 'slave_timeout' of 'lightmedi...
|
Method Details |
---|
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
|
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
charset_add(...)Add charset to list of supported input charsets/encoding. If some string in analysed/parsed files are not UTF-8, then it will try agains a list of charsets registered with this function. |
charset_del(...)Del charset from list of supported input charsets/encoding. |
check(...)Check (and update) files under directory. This operates on all files in all sub directories of top_path using the added parsers. If files are up to date, nothing is done, otherwise they can be marked as deleted or updated if they still exists, but with different size or modification time. |
get_commit_interval(...)
|
get_slave_timeout(...)
|
is_processing(...)
|
parser_add(...)Add a new plugin/parser based on it's whole path to shared object.
|
parser_del(...)Delete a plugin/parser. |
parser_find_and_add(...)Add a new plugin/parser based on it's name.
|
process(...)Process directory recursively. This operates on all files in all sub directories of top_path using the added parsers. |
set_commit_interval(...)Set the number of transactions between commits. Sets how many transactions/files to handle in one commit, the more the faster, but if one parser takes too long and it's killed due slave_timeout being exceeded, then at most this number of transactions will be lost. Note that transaction here is not a single SQL statement, but it is considered to be the processing of a file, which can be more than just one. |
set_slave_timeout(...)Set maximum time a parser may use. This will be the timeout before killing the slave process running some parser. If this happens, another slave process will be started to continue from next file. |
Class Variable Details |
---|
commit_interval
|
db_path
|
parsers
|
slave_timeout
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Dec 13 02:07:27 2007 | http://epydoc.sf.net |