Interface RemoteProcessExecutor
-
- All Superinterfaces:
java.rmi.Remote
- All Known Implementing Classes:
ProcessExecutorServer
public interface RemoteProcessExecutor extends java.rmi.RemoteRemote interface to execute processes over RMI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intexecute(RemoteProcessContext context)Synchronously executes the process as specified in the passed context.voidquit()Shutdown the remote process executor.
-
-
-
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).
-
-