Interface IProcessLiveness
-
- All Superinterfaces:
java.lang.Runnable
- All Known Implementing Classes:
ProcessLiveness
public interface IProcessLiveness extends java.lang.RunnableThe process liveness
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.InstantgetLockTimeout()Get the lock timeoutlonggetPollTimeout()Get the process poll timeoutjava.lang.ProcessgetProcess()Get the processjava.lang.LonggetProcessId()Get the process idjava.nio.file.PathgetScriptPath()Get the script path of this process or null if there is no folderjava.time.InstantgetStartupTime()Get the startup timebooleanisAlive()Verify if the underlining process is alive
-
-
-
Method Detail
-
isAlive
boolean isAlive()
Verify if the underlining process is alive- Returns:
- true if it is alive
-
getStartupTime
java.time.Instant getStartupTime()
Get the startup time- Returns:
- the startup time
-
getPollTimeout
long getPollTimeout()
Get the process poll timeout- Returns:
- the process poll timeout
-
getProcess
java.lang.Process getProcess()
Get the process- Returns:
- the process
-
getProcessId
java.lang.Long getProcessId()
Get the process id- Returns:
- the process id
-
getLockTimeout
java.time.Instant getLockTimeout()
Get the lock timeout- Returns:
- the lock timeout
-
getScriptPath
java.nio.file.Path getScriptPath()
Get the script path of this process or null if there is no folder- Returns:
- the script folder
-
-