class_docstr: Base Python class for gRPC debug server.
class_docstr_tok: ["Base","Python","class","for","gRPC","debug","server","."]
docstr: Constructor.
  
  Args:
    server_port: (int) Port number to bind to.
    stream_handler_class: A class of the base class
      `EventListenerBaseStreamHandler` that will be used to constructor
      stream handler objects during `SendEvents` calls.
docstr_tok: ["Constructor",".","Args",":","server_port",":","(","int",")","Port","number","to","bind","to",".","stream_handler_class",":","A","class","of","the","base","class","`","EventListenerBaseStreamHandler","`","that","will","be","used","to","constructor","stream","handler","objects","during","`","SendEvents","`","calls","."]
code: def __init__(self, server_port, stream_handler_class):
      """Constructor.
  
      Args:
        server_port: (int) Port number to bind to.
        stream_handler_class: A class of the base class
          `EventListenerBaseStreamHandler` that will be used to constructor
          stream handler objects during `SendEvents` calls.
      """
  
      self._server_port = server_port
      self._stream_handler_class = stream_handler_class
  
      self._server_lock = threading.Lock()
      self._server_started = False
      self._stop_requested = False
  
      self._debug_ops_state_change_queue = queue.Queue()
      self._gated_grpc_debug_watches = set()
      self._breakpoints = set()
  
imports: import collections
  import json
  import queue
  import threading
  import time
  from concurrent import futures
  import grpc
  from tensorflow.core.debug import debug_service_pb2
  from tensorflow.core.framework import graph_pb2
  from tensorflow.python.debug.lib import debug_graphs
  from tensorflow.python.debug.lib import debug_service_pb2_grpc
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import compat
label_desc: Use image node_id 1 to create a new EventListenerBaseServicer object from inherited base classes: debug_service_pb2_grpc with example: obj = EventListenerBaseServicer(server_port, stream_handler_class)