writePidFile() — spring-boot Function Reference
Architecture documentation for the writePidFile() function in ApplicationPidFileWriter.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 3d28acef_57ad_a49f_5fa9_5b670014f248["writePidFile()"] a54714dc_65ea_29fb_e260_ad14724309d4["onApplicationEvent()"] a54714dc_65ea_29fb_e260_ad14724309d4 -->|calls| 3d28acef_57ad_a49f_5fa9_5b670014f248 da607425_3ce5_c04b_c74a_dd1d7e59c043["getProperty()"] 3d28acef_57ad_a49f_5fa9_5b670014f248 -->|calls| da607425_3ce5_c04b_c74a_dd1d7e59c043 375f3dee_a016_4975_ccff_5224a938466e["ApplicationPid()"] 3d28acef_57ad_a49f_5fa9_5b670014f248 -->|calls| 375f3dee_a016_4975_ccff_5224a938466e 223a2002_ae84_9b05_d974_80714ce51e2a["write()"] 3d28acef_57ad_a49f_5fa9_5b670014f248 -->|calls| 223a2002_ae84_9b05_d974_80714ce51e2a style 3d28acef_57ad_a49f_5fa9_5b670014f248 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/ApplicationPidFileWriter.java lines 152–160
private void writePidFile(SpringApplicationEvent event) throws IOException {
File pidFile = this.file;
String override = getProperty(event, FILE_PROPERTIES);
if (override != null) {
pidFile = new File(override);
}
new ApplicationPid().write(pidFile);
pidFile.deleteOnExit();
}
Domain
Subdomains
Called By
- onApplicationEvent()
Source
Frequently Asked Questions
What does writePidFile() do?
writePidFile() is a function in the spring-boot codebase.
What does writePidFile() call?
writePidFile() calls 3 function(s): ApplicationPid, getProperty, write.
What calls writePidFile()?
writePidFile() is called by 1 function(s): onApplicationEvent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free