Package org.springframework.boot.system
Class ApplicationPid
- java.lang.Object
- org.springframework.boot.system.ApplicationPid
public class ApplicationPid extends Object
An application process ID.- Since:
- 2.0.0
Constructor Summary
Constructors Modifier Constructor Description ApplicationPid()
protected
ApplicationPid(String pid)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
String
toString()
void
write(File file)
Write the PID to the specified file.
Constructor Detail
ApplicationPid
public ApplicationPid()
ApplicationPid
protected ApplicationPid(String pid)
Method Detail
write
public void write(File file) throws IOException
Write the PID to the specified file.- Parameters:
file
- the PID file- Throws:
IllegalStateException
- if no PID is available.IOException
- if the file cannot be written