コード例 #1
0
 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
コード例 #2
0
ファイル: metricsmgr_client.py プロジェクト: ahnqirage/heron
  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()
コード例 #3
0
ファイル: metricsmgr_client.py プロジェクト: Leeshine/heron
    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()
コード例 #4
0
 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()
コード例 #5
0
ファイル: metricsmgr_client.py プロジェクト: mage234/heron
  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()
コード例 #6
0
  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()
コード例 #7
0
ファイル: mock_generator.py プロジェクト: srkukarni/heron
 def _handle_packet(self, packet):
   # should only be called when packet is complete
   self.called_handle_packet = True
   HeronClient._handle_packet(self, packet)
コード例 #8
0
ファイル: mock_generator.py プロジェクト: AllenLiuGit/heron
 def _handle_packet(self, packet):
   # should only be called when packet is complete
   self.called_handle_packet = True
   HeronClient._handle_packet(self, packet)