Bases: object
Created on Feb 25, 2012
@author: aw, cs
Bases: object
Wrapper class for RecocoIOWorkers.
Rather than actually sending/receiving right away, queue the data. Then there are separate methods for actually sending the data via the wrapped io_worker
io_worker: io_worker to wrap
Bases: object
an IO handler that handles the select work for our IO worker
raw_input replacement that enables background IO to take place. NOTE: this migrates the IO to a specifically created BackgroundIOThread while readline’s raw_input is running. raw_input must run in the main thread so the terminal is properly restored on CTRL-C. The Background IO thread is notified and terminates before the return of this function, so no concurrent IO takes place.
Bases: object
Easily fork a job and retrieve the results
Fork off a child process and invoke the child RPC method. Return the json_hash sent by the child.
Raises a ValueError if task_name is not registered.
Register a new task to be invoked by this Forker. Parameters: - task_name: the name of the task to be run, later passed to fork() - code_block: a function object to be invoked via RPC
in the child process. Must not depend on any environment state contained in its closure.
Bases: sts.util.rpc_forker.Forker
Bases: sts.util.rpc_forker.Forker