def __init__(self): socket_options = SocketOptions(32768, 16, 32768, 16, 1024000, 1024000) HeronClient.__init__(self, None, self.HOST, self.PORT, {}, socket_options) self.on_connect_called = False self.on_response_status = None self.called_handle_packet = False self.dispatcher = MockDispatcher() self.incoming_msg = None
def __init__(self, looper, metrics_host, port, instance, out_metrics, sock_map, socket_options, sys_config): HeronClient.__init__(self, looper, metrics_host, port, sock_map, socket_options) self.instance = instance self.out_queue = out_metrics self.sys_config = sys_config self._add_metrics_client_tasks()
def __init__(self, looper, heron_instance_cls, strmgr_host, port, topology_name, topology_id, instance, sock_map, gateway_metrics, socket_options): HeronClient.__init__(self, looper, strmgr_host, port, sock_map, socket_options) self.heron_instance_cls = heron_instance_cls self.topology_name = topology_name self.topology_id = topology_id # physical_plan_pb2.Instance message self.instance = instance self.gateway_metrics = gateway_metrics self._pplan_helper = None self.sys_config = system_config.get_sys_config()
def __init__(self, looper, metrics_host, port, instance, out_metrics, in_stream, out_stream, sock_map, socket_options, gateway_metrics, sys_config): HeronClient.__init__(self, looper, metrics_host, port, sock_map, socket_options) self.instance = instance self.out_queue = out_metrics self.in_stream = in_stream self.out_stream = out_stream self.gateway_metrics = gateway_metrics self.sys_config = sys_config self._add_metrics_client_tasks() Log.debug('start updating in and out stream metrics') self._update_in_out_stream_metrics_tasks()
def __init__(self, looper, metrics_host, port, instance, out_metrics, in_stream, out_stream, sock_map, socket_options, gateway_metrics, py_metrics): HeronClient.__init__(self, looper, metrics_host, port, sock_map, socket_options) self.instance = instance self.out_queue = out_metrics self.in_stream = in_stream self.out_stream = out_stream self.gateway_metrics = gateway_metrics self.py_metrics = py_metrics self.sys_config = system_config.get_sys_config() self._add_metrics_client_tasks() Log.debug('start updating in and out stream metrics') self._update_in_out_stream_metrics_tasks() self._update_py_metrics()
def _handle_packet(self, packet): # should only be called when packet is complete self.called_handle_packet = True HeronClient._handle_packet(self, packet)