- Enclosing class:
JdiDefaultExecutionControl
public static interface JdiDefaultExecutionControl.JdiStarter
Start an external process where the user's snippets can be run.
- Since:
- 22
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
The description of a started external process. -
Method Summary
Modifier and TypeMethodDescriptionstart
(ExecutionEnv env, Map<String, String> parameters, int port) Start the external process based on the given parameters.
-
Method Details
-
start
JdiDefaultExecutionControl.JdiStarter.TargetDescription start(ExecutionEnv env, Map<String, String> parameters, int port) Start the external process based on the given parameters. The external process should connect to the givenport
to communicate with the driving instance of JShell.- Parameters:
env
- the execution contextparameters
- additional execution parametersport
- the port to which the remote process should connect- Returns:
- a description of the started external process
- Throws:
RuntimeException
- if the process cannot be startedError
- if the process cannot be started
-