Package com.github.jpmsilva.jsystemd
Class SystemdApplicationRunStatusProvider
java.lang.Object
com.github.jpmsilva.jsystemd.SystemdApplicationRunStatusProvider
- All Implemented Interfaces:
SystemdStatusProvider
@Order(-5000)
public class SystemdApplicationRunStatusProvider
extends Object
implements SystemdStatusProvider
Implementation of
SystemdStatusProvider that provides information regarding the Spring Boot application startup sequence state.- Author:
- Joao Silva
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of supported application startup sequence state. -
Method Summary
Modifier and TypeMethodDescriptionvoidstate(@NotNull SystemdApplicationRunStatusProvider.ApplicationState state, @NotNull Duration timeTaken) Updates the current application startup sequence state of the application, sending the update to systemd as well.@NotNull Stringstatus()Exposes status information to send to systemd.
-
Method Details
-
status
Description copied from interface:SystemdStatusProviderExposes status information to send to systemd.- Specified by:
statusin interfaceSystemdStatusProvider- Returns:
- the string message to add to the service status
-
state
public void state(@NotNull @NotNull SystemdApplicationRunStatusProvider.ApplicationState state, @NotNull @NotNull Duration timeTaken) Updates the current application startup sequence state of the application, sending the update to systemd as well.- Parameters:
state- the current application startup sequence statetimeTaken- the time taken for the application to reach this state
-