クラス RunProcess

java.lang.ObjectSE
org.springframework.boot.loader.tools.RunProcess

public class RunProcess extends ObjectSE
プロセスの実行に使用されるユーティリティ。
導入:
1.1.0
作成者:
Phillip Webb, Dave Syer, Andy Wilkinson, Stephane Nicoll, Dmytro Nosan
  • コンストラクターの詳細

    • RunProcess

      public RunProcess(StringSE... command)
      指定されたコマンドの新しい RunProcess インスタンスを作成します。
      パラメーター:
      command - 実行するプログラムとその引数
    • RunProcess

      public RunProcess(FileSE workingDirectory, StringSE... command)
      指定された作業ディレクトリとコマンドの新しい RunProcess インスタンスを作成します。
      パラメーター:
      workingDirectory - 現在の Java プロセスの作業ディレクトリで実行する子プロセスまたは null の作業ディレクトリ
      command - 実行するプログラムとその引数
  • メソッドの詳細

    • run

      public int run(boolean waitForProcess, StringSE... args) throws IOExceptionSE
      例外:
      IOExceptionSE
    • run

      public int run(boolean waitForProcess, CollectionSE<StringSE> args, MapSE<StringSE,StringSE> environmentVariables) throws IOExceptionSE
      例外:
      IOExceptionSE
    • getRunningProcess

      public ProcessSE getRunningProcess()
      実行中のプロセスを返します。
      戻り値:
      プロセスまたは null
    • handleSigInt

      public boolean handleSigInt()
      プロセスが停止した場合に戻ります。
      戻り値:
      停止した場合は true 
    • kill

      public void kill()
      このプロセスを終了します。
    • hasJustEnded

      public boolean hasJustEnded()