bexchange.runner package¶
Submodules¶
bexchange.runner.runners module¶
- class bexchange.runner.runners.inotify_runner(backend, active, **args)[source]¶
Bases:
runner
The inotify runner is used to monitor folders and trigger “store” events. It is run in a separate thread instead of beeing created as a daemon-thread since all initiation is performed in the main thread before server is started.
- MASK = 136¶
- handle_file(filename)[source]¶
Handles the file (by sending it to the backend using the name given to this runner :param filename: The filename to handle
- is_ignored(filename)[source]¶
Checks if the specified file should be ignored or not, for example when a tmpfile is written. the check is performed on basename. :param filename: The filename to be checked :return True if file should be ignored otherwise False
- class bexchange.runner.runners.inotify_runner_event_handler(inotify_runner)[source]¶
Bases:
ProcessEvent
- class bexchange.runner.runners.runner(backend, active)[source]¶
Bases:
object
Base class for any runner
- class bexchange.runner.runners.runner_manager[source]¶
Bases:
object
The runner manager. Will create and register the runner
- add_runner(runner)[source]¶
Adds a runner to the manager :param runner: The runner that should be added
- classmethod create_runner(clz, backend, active, extra_arguments)[source]¶
Creates an instance of clz with specified arguments :param clz: class name specified as <module>.<classname> :param arguments: a list of arguments that should be used to initialize the class
- class bexchange.runner.runners.statistics_cleanup_runner(backend, active, **args)[source]¶
Bases:
runner
Cleans the statistics database
- class bexchange.runner.runners.triggered_fetch_runner(backend, active, **args)[source]¶
Bases:
runner
,message_aware
A triggered runner. This runner implements ‘message_aware’ so that a json-message can be handled. This runner is actually triggered from the WSGI-process and as such is using the WSGI-servers thread pool. @todo: Implement this as a producer/consumer thread to avoid any possibility to starve the WSGI-thread pool.