Package pyworker :: Module jsonworker :: Class JSONWorker
[hide private]
[frames] | no frames]

Class JSONWorker

source code

     object --+    
              |    
pyworker.Worker --+
                  |
                 JSONWorker

Similar in practice to the normal Worker, except it only tolerates JSON messages and will ignore any it cannot parse. Passing it an outbound queue will allow it to pass any unparsable msgs onwards.

Instance Methods [hide private]
 
run(self) source code

Inherited from pyworker.Worker: __init__, endtask, parse_json_msg, starttask

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

run(self)

source code 
Overrides: pyworker.Worker.run