def __init__(self, identity, workdir, nailgun_classpath, distribution, startup_timeout=10, connect_timeout=10, connect_attempts=5, metadata_base_dir=None):
    Executor.__init__(self, distribution=distribution)
    FingerprintedProcessManager.__init__(self, name=identity, process_name=self._PROCESS_NAME, metadata_base_dir=metadata_base_dir)
    if (not isinstance(workdir, str)):
        raise ValueError('Workdir must be a path string, not: {workdir}'.format(workdir=workdir))
    self._identity = identity
    self._workdir = workdir
    self._ng_stdout = os.path.join(workdir, 'stdout')
    self._ng_stderr = os.path.join(workdir, 'stderr')
    self._nailgun_classpath = ensure_str_list(nailgun_classpath)
    self._startup_timeout = startup_timeout
    self._connect_timeout = connect_timeout
    self._connect_attempts = connect_attempts
def __init__(self, identity, workdir, nailgun_classpath, distribution, startup_timeout=10, connect_timeout=10, connect_attempts=5, metadata_base_dir=None):
    Executor.__init__(self, distribution=distribution)
    FingerprintedProcessManager.__init__(self, name=identity, process_name=self._PROCESS_NAME, metadata_base_dir=metadata_base_dir)
    if (not isinstance(workdir, str)):
        raise ValueError('Workdir must be a path string, not: {workdir}'.format(workdir=workdir))
    self._identity = identity
    self._workdir = workdir
    self._ng_stdout = os.path.join(workdir, 'stdout')
    self._ng_stderr = os.path.join(workdir, 'stderr')
    self._nailgun_classpath = ensure_str_list(nailgun_classpath)
    self._startup_timeout = startup_timeout
    self._connect_timeout = connect_timeout
    self._connect_attempts = connect_attempts