类 ApplicationPid
- java.lang.Object
- org.springframework.boot.system.ApplicationPid
public class ApplicationPid extends Object
An application process ID.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 限定符 构造器 说明 ApplicationPid()
protected
ApplicationPid(String pid)
构造器详细资料
ApplicationPid
public ApplicationPid()
ApplicationPid
protected ApplicationPid(String pid)
方法详细资料
write
public void write(File file) throws IOException
Write the PID to the specified file.- 参数:
file
- the PID file- 抛出:
IllegalStateException
- if no PID is available.IOException
- if the file cannot be written