Class SystemdAutoConfiguration
java.lang.Object
com.github.jpmsilva.jsystemd.spring.autoconfigure.SystemdAutoConfiguration
@AutoConfiguration
@ConditionalOnSystemd
@EnableConfigurationProperties(SystemdProperties.class)
public class SystemdAutoConfiguration
extends Object
Autoconfiguration class for systemd integration.
Sets up some basic StatusProvider as well.
- Author:
- Joao Silva, Christian Lorenz
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration class for systemd integration when using Spring Boot Actuator, providing aHealthProviderbased on its health contributors.static classConfiguration class for systemd integration when using HikariCP connection pools.static classConfiguration class for systemd integration when running under the embedded Jetty of Spring Boot.static classConfiguration class for systemd integration when using Liquibase, reporting the progress of the database migrations run on startup.static classConfiguration class for systemd integration when running under the embedded Reactor Netty of Spring Boot.static classConfiguration class for the status providers that read the operating system beans specific to the JVMs based on OpenJDK, which are left out on other JVMs.static classConfiguration class for systemd integration when running under the embedded Tomcat of Spring Boot. -
Method Summary
Modifier and TypeMethodDescriptionvoidEvent listener for theAvailabilityChangeEventevent to report to systemd that the service is ready.
-
Method Details
-
started
Event listener for theAvailabilityChangeEventevent to report to systemd that the service is ready.The application is considered ready when the event is a
ReadinessStatewith the stateReadinessState.ACCEPTING_TRAFFIC, unless configured to be ready once it has started instead, withsystemd.ready-event=application-started, whichSystemdSpringApplicationRunListenerreports.- Parameters:
event- theAvailabilityChangeEventreceived
-