zot.dispatcher module
basic package for the program.
-
class DISPATCHER(zelf, *args, **kwargs)[source]
Bases: zot.object.Object
the dispatcher delegates the workload to the Runners. Runner gets instantiated when needed.
-
cc = '!'
-
collect(zelf, *args, **kwargs)[source]
-
event(zelf, *args, **kwargs)[source]
-
exit(zelf, *args, **kwargs)[source]
-
handle_cmnd(zelf, *args, **kwargs)[source]
-
handle_event(zelf, *args, **kwargs)[source]
-
put(zelf, *args, **kwargs)[source]
-
single(zelf, *args, **kwargs)[source]
-
start(zelf, *args, **kwargs)[source]
-
stop(zelf, *args, **kwargs)[source]
-
class RUNNER(zelf, *args, **kwargs)[source]
Bases: threading.Thread
the working unit of ZOTBOT.
-
put(zelf, *args, **kwargs)[source]
put arguments/kwargs to the Runner.
-
run(zelf, *args, **kwargs)[source]
loop that executes the (function, object) pairs.
-
stop(zelf, *args, **kwargs)[source]