类 ApplicationPid
java.lang.Object
org.springframework.boot.system.ApplicationPid
An application process ID.
- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
ApplicationPid
public ApplicationPid() -
ApplicationPid
-
-
方法详细资料
-
isAvailable
public boolean isAvailable()Return if the application PID is available.- 返回:
true
if the PID is available- 从以下版本开始:
- 3.4.0
-
toLong
Return the application PID as aLong
.- 返回:
- the application PID or
null
- 从以下版本开始:
- 3.4.0
-
equals
-
hashCode
public int hashCode() -
toString
-
write
Write the PID to the specified file.- 参数:
file
- the PID file- 抛出:
IllegalStateException
- if no PID is available.IOException
- if the file cannot be written
-