Class SubProcessIOFiles

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class SubProcessIOFiles
    extends java.lang.Object
    implements java.io.Closeable
    All information generated from the process will be stored in output files. The local working directory is used to generate three files with extension .err for standard error output .out for standard out output .ret for storing the results from the called library. The files will have a uuid created for them based on java.util.UUID
    • Constructor Detail

      • SubProcessIOFiles

        public SubProcessIOFiles​(java.lang.String workerWorkingDirectory)
        Parameters:
        workerWorkingDirectory -
    • Method Detail

      • getErrFileLocation

        public java.lang.String getErrFileLocation()
      • getOutFileLocation

        public java.lang.String getOutFileLocation()
      • getErrFile

        public java.nio.file.Path getErrFile()
      • getOutFile

        public java.nio.file.Path getOutFile()
      • getResultFile

        public java.nio.file.Path getResultFile()
      • close

        public void close()
                   throws java.io.IOException
        Clean up the files that have been created on the local worker file system. Without this expect both performance issues and eventual failure
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • copyOutPutFilesToBucket

        public void copyOutPutFilesToBucket​(SubProcessConfiguration configuration,
                                            java.lang.String params)
        Will copy the output files to the GCS path setup via the configuration.
        Parameters:
        configuration -
        params -