Package tv.hd3g.processlauncher
Class ProcesslauncherLifecycle
- java.lang.Object
-
- tv.hd3g.processlauncher.ProcesslauncherLifecycle
-
- All Implemented Interfaces:
ProcesslauncherLifecycleShortcutTraits
public class ProcesslauncherLifecycle extends Object implements ProcesslauncherLifecycleShortcutTraits
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcesslauncherLifecyclecheckExecution()waitForEnd and checks isCorrectlyDonelonggetCPUDuration(TimeUnit unit)longgetEndDate()EndStatusgetEndStatus()ProcesslaunchergetLauncher()ProcessgetProcess()longgetStartDate()StdInInjectiongetStdInInjection()longgetUptime(TimeUnit unit)booleanisKilled()booleanisTooLongTime()ProcesslauncherLifecyclekill()StringtoString()ProcesslauncherLifecyclewaitForEnd()ProcesslauncherLifecyclewaitForEnd(long timeout, TimeUnit unit)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface tv.hd3g.processlauncher.ProcesslauncherLifecycleShortcutTraits
getExitCode, getPID, getUserExec, isCorrectlyDone, isRunning
-
-
-
-
Method Detail
-
getStartDate
public long getStartDate()
-
getLauncher
public Processlauncher getLauncher()
-
getProcess
public Process getProcess()
- Specified by:
getProcessin interfaceProcesslauncherLifecycleShortcutTraits
-
getEndStatus
public EndStatus getEndStatus()
- Specified by:
getEndStatusin interfaceProcesslauncherLifecycleShortcutTraits
-
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- Throws:
InvalidExecution
-
getStdInInjection
public StdInInjection getStdInInjection()
-
-