Uses of Interface
jdk.jshell.spi.ExecutionControl
| Package | Description |
|---|---|
| jdk.jshell.execution |
Provides implementation support for building JShell execution engines.
|
| jdk.jshell.spi |
Defines the Service Provider Interface for pluggable JShell execution engines.
|
-
Uses of ExecutionControl in jdk.jshell.execution
Classes in jdk.jshell.execution that implement ExecutionControl Modifier and Type Class Description classDirectExecutionControlAnExecutionControlimplementation that runs in the current process.classJdiDefaultExecutionControlThe implementation ofExecutionControlthat the JShell-core uses by default.classJdiExecutionControlAbstract JDI implementation ofExecutionControl.classLocalExecutionControlAn implementation ofExecutionControlwhich executes in the same JVM as the JShell-core.classRemoteExecutionControlThe remote agent runs in the execution process (separate from the main JShell process).classStreamingExecutionControlAn implementation of theExecutionControlexecution engine SPI which streams requests to a remote agent where execution takes place.Methods in jdk.jshell.execution that return ExecutionControl Modifier and Type Method Description ExecutionControlFailOverExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)Create and return a locally executingExecutionControlinstance.ExecutionControlLocalExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)Create and return a locally executingExecutionControlinstance.static ExecutionControlUtil. remoteInputOutput(InputStream input, OutputStream output, Map<String,OutputStream> outputStreamMap, Map<String,InputStream> inputStreamMap, BiFunction<ObjectInput,ObjectOutput,ExecutionControl> factory)Creates an ExecutionControl for given packetized input and output.Methods in jdk.jshell.execution with parameters of type ExecutionControl Modifier and Type Method Description static voidUtil. forwardExecutionControl(ExecutionControl ec, ObjectInput in, ObjectOutput out)Forward commands from the input to the specifiedExecutionControlinstance, then responses back on the output.static voidUtil. forwardExecutionControlAndIO(ExecutionControl ec, InputStream inStream, OutputStream outStream, Map<String,Consumer<OutputStream>> outputStreamMap, Map<String,Consumer<InputStream>> inputStreamMap)Forward commands from the input to the specifiedExecutionControlinstance, then responses back on the output.Method parameters in jdk.jshell.execution with type arguments of type ExecutionControl Modifier and Type Method Description static ExecutionControlUtil. remoteInputOutput(InputStream input, OutputStream output, Map<String,OutputStream> outputStreamMap, Map<String,InputStream> inputStreamMap, BiFunction<ObjectInput,ObjectOutput,ExecutionControl> factory)Creates an ExecutionControl for given packetized input and output. -
Uses of ExecutionControl in jdk.jshell.spi
Methods in jdk.jshell.spi that return ExecutionControl Modifier and Type Method Description static ExecutionControlExecutionControl. generate(ExecutionEnv env, String spec)Search for a provider, then create and return theExecutionControlinstance.static ExecutionControlExecutionControl. generate(ExecutionEnv env, String name, Map<String,String> parameters)Search for a provider, then create and return theExecutionControlinstance.ExecutionControlExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)Create and return theExecutionControlinstance.