The gemstone.client module¶
The gemstone.client.RemoteService class¶
- class
gemstone.client.
RemoteService
(service_endpoint, *, authentication_method=None)[source]¶
call_method
(method_name_or_object, params=None)[source]¶Calls the
method_name
method from the given service and returns agemstone.client.structs.Result
instance.
Parameters:
- method_name_or_object – The name of te called method or a
MethodCall
instance- params – A list of dict representing the parameters for the request
Returns: a
gemstone.client.structs.Result
instance.
call_method_async
(method_name_or_object, params=None)[source]¶Calls the
method_name
method from the given service asynchronously and returns agemstone.client.structs.AsyncMethodCall
instance.
Parameters:
- method_name_or_object – The name of te called method or a
MethodCall
instance- params – A list of dict representing the parameters for the request
Returns: a
gemstone.client.structs.AsyncMethodCall
instance.
handle_single_request
(request_object)[source]¶Handles a single request object and returns the raw response
Parameters: request_object –
notify
(method_name_or_object, params=None)[source]¶Sends a notification to the service by calling the
method_name
method with theparams
parameters. Does not wait for a response, even if the response triggers an error.
Parameters:
- method_name_or_object – the name of the method to be called or a
Notification
instance- params – a list of dict representing the parameters for the call
Returns: None