@Internal public final class ProcessPythonEnvironmentManager extends Object implements PythonEnvironmentManager
| Modifier and Type | Field and Description |
|---|---|
static String |
PYTHON_REQUIREMENTS_CACHE |
static String |
PYTHON_REQUIREMENTS_FILE |
static String |
PYTHON_REQUIREMENTS_INSTALL_DIR |
static String |
PYTHON_WORKING_DIR |
| Constructor and Description |
|---|
ProcessPythonEnvironmentManager(PythonDependencyInfo dependencyInfo,
String[] tmpDirectories,
Map<String,String> systemEnv) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
PythonEnvironment |
createEnvironment()
Creates the PythonEnvironment object used in
PythonFunctionRunner. |
String |
createRetrievalToken()
Returns an empty RetrievalToken because no files will be transmit via ArtifactService in
process mode.
|
String |
getBootLog()
Returns the boot log of the Python Environment.
|
void |
open()
Initialize the environment manager.
|
void |
setEnvironmentVariable(String key,
String value) |
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_FILE
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_CACHE
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_INSTALL_DIR
@VisibleForTesting public static final String PYTHON_WORKING_DIR
public ProcessPythonEnvironmentManager(@NotNull
PythonDependencyInfo dependencyInfo,
@NotNull
String[] tmpDirectories,
@NotNull
Map<String,String> systemEnv)
public void open()
throws Exception
PythonEnvironmentManageropen in interface PythonEnvironmentManagerExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic PythonEnvironment createEnvironment() throws IOException
PythonEnvironmentManagerPythonFunctionRunner.createEnvironment in interface PythonEnvironmentManagerIOExceptionpublic String createRetrievalToken() throws IOException
createRetrievalToken in interface PythonEnvironmentManagerIOExceptionpublic String getBootLog() throws Exception
PythonEnvironmentManagergetBootLog in interface PythonEnvironmentManagerExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.