Class BasicProcessExecutor

    • Constructor Detail

      • BasicProcessExecutor

        public BasicProcessExecutor()
    • Method Detail

      • execute

        public int execute​(ProcessContext context)
                    throws java.io.IOException
        Synchronously executes the given ProcessContext.
        Parameters:
        context - the context to execute
        Returns:
        the exit code of the underlying os process.
        Throws:
        java.io.IOException - on eny error while executing the process.
      • quit

        public void quit()
                  throws java.io.IOException
        Description copied from interface: ProcessExecutor
        Terminates this ProcessExecutor and frees all associated resources. Note the lifecycle of a ProcessExecutor has tenant scope, i.e. there is no need to call ProcessExecutor.quit() except when shutting down the server (what will be done automatically).
        Throws:
        java.io.IOException - on any error