Example #1
0
 def __init__(self, service_name, name, context):
     super(PartitionSpecificProxy, self).__init__(service_name, name,
                                                  context)
     partition_key = context.serialization_service.to_data(
         string_partition_strategy(self.name))
     self._partition_id = context.partition_service.get_partition_id(
         partition_key)
Example #2
0
File: base.py Project: OlyaT/FunFic
 def __init__(self, client, service_name, name):
     self.service_name = service_name
     self.name = name
     self.partition_key = string_partition_strategy(self.name)
     self._client = client
     self.logger = logging.getLogger("%s(%s)" % (type(self).__name__, name))
     self._to_object = client.serialization_service.to_object
     self._to_data = client.serialization_service.to_data
     self._start_listening = client.listener.start_listening
     self._stop_listening = client.listener.stop_listening
Example #3
0
 def __init__(self, client, service_name, name):
     self.service_name = service_name
     self.name = name
     self.partition_key = string_partition_strategy(self.name)
     self._client = client
     self.logger = logging.getLogger("%s(%s)" % (type(self).__name__, name))
     self._to_object = client.serialization_service.to_object
     self._to_data = client.serialization_service.to_data
     self._start_listening = client.listener.start_listening
     self._stop_listening = client.listener.stop_listening
 def __init__(self, client, service_name, name):
     self.service_name = service_name
     self.name = name
     self.partition_key = string_partition_strategy(self.name)
     self._client = client
     self.logger = logging.getLogger("HazelcastClient.%s(%s)" %
                                     (type(self).__name__, name))
     self._to_object = client.serialization_service.to_object
     self._to_data = client.serialization_service.to_data
     self._register_listener = client.listener.register_listener
     self._deregister_listener = client.listener.deregister_listener
     self._is_smart = client.listener.is_smart