Package park :: Package core :: Module xmlrpc_service :: Class Xmlrpc

Class Xmlrpc

source code


Communicate with the Park fitting service.

There are two types of communication with the service. One is synchronous: queue job, enquire status, etc. The other is asynchronous: listen for activity on jobid

Instance Methods
 
__init__(self, url="http://localhost:8000")
Connect to the park job service using the XMLRPC protocol.
source code
 
submit(self, request, monitor) source code
 
wait(self, jobid, interval=0.1)
Wait for the job to be complete.
source code
 
listen(self, jobid, callback)
Add callback for jobid to listeners.
source code
 
hangup(self, jobid, callback)
Stop listening for callback
source code

Inherited from SocketServer.ThreadingMixIn: process_request, process_request_thread

Inherited from SocketServer.TCPServer: close_request, fileno, get_request, server_activate, server_bind, server_close

Inherited from SocketServer.BaseServer: finish_request, handle_error, handle_request, serve_forever, verify_request

Inherited from SimpleXMLRPCServer.SimpleXMLRPCDispatcher: register_function, register_instance, register_introspection_functions, register_multicall_functions, system_listMethods, system_methodHelp, system_methodSignature, system_multicall

Inherited from DocXMLRPCServer.XMLRPCDocGenerator: generate_html_documentation, set_server_documentation, set_server_name, set_server_title

Class Variables

Inherited from site-packages.park.util.ThreadingXMLRPC.ThreadingXMLRPCServer: allow_reuse_address

Inherited from SocketServer.ThreadingMixIn: daemon_threads

Inherited from SocketServer.TCPServer: address_family, request_queue_size, socket_type

Method Details

__init__(self, url="http://localhost:8000")
(Constructor)

source code 
Connect to the park job service using the XMLRPC protocol.
Overrides: DocXMLRPCServer.XMLRPCDocGenerator.__init__