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:
  • Method Details

    • status

      @NotNull public @NotNull String status()
      Description copied from interface: SystemdStatusProvider
      Exposes status information to send to systemd.
      Specified by:
      status in interface SystemdStatusProvider
      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 state
      timeTaken - the time taken for the application to reach this state