public final class ProcessExecutorServer extends Object implements RemoteProcessExecutor
ProcessExecutor implementation to run in a separate JVM. The communication with this ProcessExecutor is
encapsulated in various RMI calls.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
The default port to use (if no other port was specified.
|
static String |
LOOPBACK_CONFIG_KEY
The Loopback address to connect to the localhost only.
|
static String |
START_CONFIRMATION
Message printed to
System.out to notify a successfull startup and registration of the RMI services. |
| Modifier and Type | Method and Description |
|---|---|
int |
execute(RemoteProcessContext context)
Synchronously executes the process as specified in the passed context.
|
static void |
main(String[] args)
Main method starting a
ProcessExecutorServer and registering the RMI services. |
void |
quit()
Shutdown the remote process executor.
|
public static final String LOOPBACK_CONFIG_KEY
public static final String START_CONFIRMATION
System.out to notify a successfull startup and registration of the RMI services.public static final int DEFAULT_PORT
public int execute(RemoteProcessContext context) throws IOException
RemoteProcessExecutorexecute in interface RemoteProcessExecutorcontext - the process description to execute.IOException - on any errorpublic void quit()
throws IOException
RemoteProcessExecutorquit in interface RemoteProcessExecutorIOException - on any error (e.g. communication failed).public static void main(String[] args)
ProcessExecutorServer and registering the RMI services.
There are two parameters passed:
args - command line arguments as described above.Copyright © 2017 SAP SE. All Rights Reserved.