#NEWLINE# def __init__( self , port , host , num_executors = 10 ) : #NEWLINE# #INDENT# '\n        :param port: The port number the slave service is running on\n        :type port: int\n        :param host: The hostname at which the slave is reachable\n        :type host: str\n        :param num_executors: The number of executors this slave should operate with -- this determines how many\n            concurrent subjobs the slave can execute.\n        :type num_executors: int\n        ' #NEWLINE# self . port = port #NEWLINE# self . host = host #NEWLINE# self . is_alive = True #NEWLINE# self . _slave_id = None #NEWLINE# self . _num_executors = num_executors #NEWLINE# self . _logger = log . get_logger ( __name__ ) #NEWLINE# self . _idle_executors = Queue ( maxsize = host ) #NEWLINE# self . executors_by_id = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for executor_id in range ( num_executors ) : #NEWLINE# #INDENT# executor = SubjobExecutor ( executor_id ) #NEWLINE# self . _idle_executors . put ( executor ) #NEWLINE# self . executors_by_id [ executor_id ] = executor #NEWLINE# #UNINDENT# self . _master_url = None #NEWLINE# self . _network = Network ( min_connection_poolsize = num_executors ) #NEWLINE# self . _master_api = None #NEWLINE# self . _project_type = None #NEWLINE# self . _current_build_id = None #NEWLINE# self . _build_teardown_coin = None #NEWLINE# self . _base_executor_index = None