Class UdfLogsModule
- java.lang.Object
-
- com.exasol.udfdebugging.modules.udflogs.UdfLogsModule
-
- All Implemented Interfaces:
Module,Closeable,AutoCloseable
public class UdfLogsModule extends Object implements Module
This module redirects the STDOUT of UDFs to files on the test host.For that it uses the
ALTER SESSION SET SCRIPT_OUTPUT_ADDRESScommand of the Exasol database.
-
-
Constructor Summary
Constructors Constructor Description UdfLogsModule(LocalServiceExposer localServiceExposer, Connection exasolConnection)Create a new instance ofUdfLogsModule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()List<Path>getCapturedLogFiles()Get all log files that were captured.Stream<String>getJvmOptions()Get JVM options required by this module.
-
-
-
Constructor Detail
-
UdfLogsModule
public UdfLogsModule(LocalServiceExposer localServiceExposer, Connection exasolConnection)
Create a new instance ofUdfLogsModule.- Parameters:
localServiceExposer- proxy factory that makes ports of the test host available in the containerexasolConnection- connection to the exasol database
-
-
Method Detail
-
getJvmOptions
public Stream<String> getJvmOptions()
Description copied from interface:ModuleGet JVM options required by this module.- Specified by:
getJvmOptionsin interfaceModule- Returns:
- JVM options
-
getCapturedLogFiles
public List<Path> getCapturedLogFiles()
Get all log files that were captured.- Returns:
- list of captured log files.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-