public final class ProcessExecutorServer extends java.lang.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 java.lang.String |
LOOPBACK_CONFIG_KEY
The Loopback address to connect to the localhost only.
|
static java.lang.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(java.lang.String[] args)
Main method starting a
ProcessExecutorServer and registering the RMI services. |
void |
quit()
Shutdown the remote process executor.
|
public static final java.lang.String LOOPBACK_CONFIG_KEY
public static final java.lang.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 java.io.IOException
RemoteProcessExecutorexecute in interface RemoteProcessExecutorcontext - the process description to execute.java.io.IOException - on any errorpublic void quit()
throws java.io.IOException
RemoteProcessExecutorquit in interface RemoteProcessExecutorjava.io.IOException - on any error (e.g. communication failed).public static void main(java.lang.String[] args)
ProcessExecutorServer and registering the RMI services.
There are two parameters passed:
args - command line arguments as described above.Copyright © 2018 SAP SE. All Rights Reserved.