Package com.github.jpmsilva.jsystemd.spring
@NullMarked
package com.github.jpmsilva.jsystemd.spring
The building blocks of the integration of Spring Boot applications with systemd.
Types are not null unless annotated as Nullable.
-
ClassDescriptionProvides the application health based on Spring Boot Actuator health contributors: as a
HealthProvider, for the systemd watchdog, and as aStatusProvider, for the systemd status.Implementation ofStatusProviderthat provides information regarding the bean creation progress of a bean factory.Implementation ofStatusProviderthat provides information regarding the Spring Boot application startup sequence state.Enumeration of supported application startup sequence state.Provides the availability of the application, as Spring Boot reports it with itsAvailabilityChangeEvent: as aStatusProvider, whether it is live, and whether it is ready to accept traffic, such asLiveness: correct; readiness: accepting traffic, and as aHealthProvider, for the systemd watchdog, reporting the application as unhealthy while its liveness is broken, if enabled.Conditionalthat only matches when the process is running under systemd.Provides information regarding the HikariCP connection pools of the application: as aStatusProvider, for each pool, named after its data source bean, the connections in use out of the most the pool opens, and the threads waiting for a connection, such asdataSource: 7/10 connections, 3 waiting, and as aHealthProvider, for the systemd watchdog, reporting the application as unhealthy while a pool is starved, if enabled.Implementation ofStatusProviderthat provides information regarding the embedded Jetty servers of the application.Implementation ofStatusProviderthat provides the progress of the Liquibase database migrations run on startup, such asLiquibase: applying changeset 042-add-index (41 applied).Implementation ofStatusProviderthat provides information regarding the embedded Reactor Netty servers of the application.Implementation ofStatusProviderthat provides the stage the application is at while it shuts down, such asShutdown: waiting for active requests, so that a slow shutdown can be told apart from a hung one withsystemctl status.Sends the stopping signal to systemd when the application context starts closing, before its life cycle beans stop, such as the embedded web server, which then waits for the active requests.Implementation ofStatusProviderthat provides information regarding the thread pools of the task executors and schedulers of the application, such as the ones Spring Boot sets up for@Asyncand@Scheduledmethods, each reported by anExecutorStatusProvidernamed after its bean, such asapplicationTaskExecutor: 2/8 threads, 5 queued, taskScheduler: 1/1 threads, 3 scheduled.Implementation ofStatusProviderthat provides information regarding the connectors of the embedded Tomcat servers of the application.