Class 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_ADDRESS command of the Exasol database.

    • Constructor Detail

      • UdfLogsModule

        public UdfLogsModule​(LocalServiceExposer localServiceExposer,
                             Connection exasolConnection)
        Create a new instance of UdfLogsModule.
        Parameters:
        localServiceExposer - proxy factory that makes ports of the test host available in the container
        exasolConnection - connection to the exasol database
    • Method Detail

      • getJvmOptions

        public Stream<String> getJvmOptions()
        Description copied from interface: Module
        Get JVM options required by this module.
        Specified by:
        getJvmOptions in interface Module
        Returns:
        JVM options
      • getCapturedLogFiles

        public List<Path> getCapturedLogFiles()
        Get all log files that were captured.
        Returns:
        list of captured log files.