Class ProcesslauncherLifecycle

java.lang.Object
tv.hd3g.processlauncher.ProcesslauncherLifecycle

public class ProcesslauncherLifecycle extends Object
  • Method Details

    • getExecNameWithoutExt

      public String getExecNameWithoutExt()
    • getStartDate

      public long getStartDate()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLauncher

      public Processlauncher getLauncher()
    • getProcess

      public Process getProcess()
    • getEndStatus

      public EndStatus getEndStatus()
    • getEndDate

      public long getEndDate()
    • getUptime

      public long getUptime(TimeUnit unit)
    • getCPUDuration

      public long getCPUDuration(TimeUnit unit)
    • isKilled

      public boolean isKilled()
    • isTooLongTime

      public boolean isTooLongTime()
    • kill

      public ProcesslauncherLifecycle kill()
    • waitForEnd

      public ProcesslauncherLifecycle waitForEnd()
    • waitForEnd

      public ProcesslauncherLifecycle waitForEnd(long timeout, TimeUnit unit)
    • checkExecution

      public ProcesslauncherLifecycle checkExecution()
      waitForEnd and checks isCorrectlyDone
    • getStdInInjection

      public StdInInjection getStdInInjection()
    • isCorrectlyDone

      public boolean isCorrectlyDone()
    • getExitCode

      public Integer getExitCode()
      Blocking call until process is really done. Correct: https://github.com/hdsdi3g/processlauncher/issues/1
    • getUserExec

      public Optional<String> getUserExec()
      on Windows, return like "HOST_or_DOMAIN"\"username"
    • getPID

      public Optional<Long> getPID()
    • isRunning

      public Boolean isRunning()