oor.dispatch module
basic package for the program.
-
class Dispatcher[source]
Bases: oor.object.Object
the dispatcher delegates the workload to the Runners. Runner gets instantiated when needed.
-
allowed(zelf, *args, **kwargs)[source]
-
denied(zelf, *args, **kwargs)[source]
-
dispatch(zelf, *args, **kwargs)[source]
dispatch an event onto a Runner.
-
make_new(zelf, *args, **kwargs)[source]
create a Runner.
-
put(zelf, *args, **kwargs)[source]
put load to the Runner.
-
register(zelf, *args, **kwargs)[source]
callback type with corresponding callback function.
-
run_func(zelf, *args, **kwargs)[source]
execute command/event pair.
-
class Runner(zelf, *args, **kwargs)[source]
Bases: threading.Thread
the working unit of OOR.
-
clear(zelf)[source]
clear the ready state.
-
put(zelf, *args, **kwargs)[source]
put arguments/kwargs to the Runner.
-
ready(zelf)[source]
signal to ready state.
-
wait(zelf, sec=180.0)[source]
wait for ready state.