Interface RemoteProcessExecutor

  • All Superinterfaces:
    java.rmi.Remote
    All Known Implementing Classes:
    ProcessExecutorServer

    public interface RemoteProcessExecutor
    extends java.rmi.Remote
    Remote interface to execute processes over RMI.
    • Method Detail

      • execute

        int execute​(RemoteProcessContext context)
             throws java.io.IOException
        Synchronously executes the process as specified in the passed context.
        Parameters:
        context - the process description to execute.
        Returns:
        the exit code of the process
        Throws:
        java.io.IOException - on any error
      • quit

        void quit()
           throws java.io.IOException
        Shutdown the remote process executor.
        Throws:
        java.io.IOException - on any error (e.g. communication failed).