Rename ApplicationPidListener
Rename ApplicationPidListener to ApplicationPidFileWriter (keeping the old class in a deprecated form) Fixes gh-1673
This commit is contained in:
@@ -856,7 +856,7 @@ if needed.
|
||||
|
||||
[[production-ready-process-monitoring]]
|
||||
== Process monitoring
|
||||
In Spring Boot Actuator you can find `ApplicationPidListener` which creates file
|
||||
In Spring Boot Actuator you can find `ApplicationPidFileWriter` which creates file
|
||||
containing application PID (by default in application directory and file name is
|
||||
`application.pid`). It's not activated by default, but you can do it in two simple
|
||||
ways described below.
|
||||
@@ -870,7 +870,7 @@ In `META-INF/spring.factories` file you have to activate the listener:
|
||||
[indent=0]
|
||||
----
|
||||
org.springframework.context.ApplicationListener=\
|
||||
org.springframework.boot.actuate.system.ApplicationPidListener
|
||||
org.springframework.boot.actuate.system.ApplicationPidFileWriter
|
||||
----
|
||||
|
||||
|
||||
@@ -878,7 +878,7 @@ In `META-INF/spring.factories` file you have to activate the listener:
|
||||
[[production-ready-process-monitoring-programmatically]]
|
||||
=== Programmatically
|
||||
You can also activate this listener by invoking `SpringApplication.addListeners(...)`
|
||||
method and passing `ApplicationPidListener` object. You can also customize file name
|
||||
method and passing `ApplicationPidFileWriter` object. You can also customize file name
|
||||
and path through constructor.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user