インタフェースjdk.jshell.spi.ExecutionControlの
使用
-
ExecutionControlを使用するパッケージ パッケージ 説明 jdk.jshell.execution JShell実行エンジンを構築するための実装サポートを提供します。jdk.jshell.spi プラガブルJShell実行エンジン用のサービス・プロバイダ・インタフェースを定義します。 -
-
jdk.jshell.executionでのExecutionControlの使用
ExecutionControlを実装しているjdk.jshell.executionのクラス 修飾子と型 クラス 説明 class
DirectExecutionControl
現在のプロセスで実行されるExecutionControl
実装。class
JdiDefaultExecutionControl
JShellコアがデフォルトで使用するExecutionControl
の実装。class
JdiExecutionControl
ExecutionControl
のJDI実装の概要。class
LocalExecutionControl
JShellコアと同じJVMで実行されるExecutionControl
の実装。class
RemoteExecutionControl
リモート・エージェントは実行プロセス(メインのJShellプロセスとは別に)で実行されます。class
StreamingExecutionControl
実行が行われるリモート・エージェントにリクエストをストリーミングするExecutionControl
実行エンジンSPIの実装。ExecutionControlを戻すjdk.jshell.executionのメソッド 修飾子と型 メソッド 説明 ExecutionControl
FailOverExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)
ローカルに実行するExecutionControl
インスタンスを作成して返します。ExecutionControl
LocalExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)
ローカルに実行するExecutionControl
インスタンスを作成して返します。static ExecutionControl
Util. remoteInputOutput(InputStream input, OutputStream output, Map<String,OutputStream> outputStreamMap, Map<String,InputStream> inputStreamMap, BiFunction<ObjectInput,ObjectOutput,ExecutionControl> factory)
パケット化された入力と出力に対してExecutionControlを作成します。型ExecutionControlのパラメータを持つjdk.jshell.executionのメソッド 修飾子と型 メソッド 説明 static void
Util. forwardExecutionControl(ExecutionControl ec, ObjectInput in, ObjectOutput out)
入力から指定されたExecutionControl
インスタンスへコマンドを転送し、出力にレスポンスします。static void
Util. forwardExecutionControlAndIO(ExecutionControl ec, InputStream inStream, OutputStream outStream, Map<String,Consumer<OutputStream>> outputStreamMap, Map<String,Consumer<InputStream>> inputStreamMap)
入力から指定されたExecutionControl
インスタンスへコマンドを転送し、出力にレスポンスします。型ExecutionControlの型引数を持つjdk.jshell.executionのメソッド・パラメータ 修飾子と型 メソッド 説明 static ExecutionControl
Util. remoteInputOutput(InputStream input, OutputStream output, Map<String,OutputStream> outputStreamMap, Map<String,InputStream> inputStreamMap, BiFunction<ObjectInput,ObjectOutput,ExecutionControl> factory)
パケット化された入力と出力に対してExecutionControlを作成します。 -
jdk.jshell.spiでのExecutionControlの使用
ExecutionControlを戻すjdk.jshell.spiのメソッド 修飾子と型 メソッド 説明 static ExecutionControl
ExecutionControl. generate(ExecutionEnv env, String spec)
プロバイダを検索し、ExecutionControl
インスタンスを作成して返します。static ExecutionControl
ExecutionControl. generate(ExecutionEnv env, String name, Map<String,String> parameters)
プロバイダを検索し、ExecutionControl
インスタンスを作成して返します。ExecutionControl
ExecutionControlProvider. generate(ExecutionEnv env, Map<String,String> parameters)
ExecutionControl
インスタンスを作成して返します。
-