Interface StatusProvider

All Known Implementing Classes:
ActuatorHealthStatusProvider, ApplicationContextStatusProvider, ApplicationRunStatusProvider, AvailabilityStatusProvider, BufferPoolStatusProvider, CgroupMemoryStatusProvider, ClassLoaderStatusProvider, CpuStatusProvider, ExecutorStatusProvider, FileDescriptorStatusProvider, GarbageCollectionStatusProvider, HeapStatusProvider, HikariStatusProvider, JettyStatusProvider, LiquibaseStatusProvider, NettyStatusProvider, NonHeapStatusProvider, OldGenerationStatusProvider, PhaseStatusProvider, ShutdownStatusProvider, TaskExecutorStatusProvider, ThreadStatusProvider, TomcatStatusProvider

public interface StatusProvider
Interface that represents any object that can contribute with status information regarding the running process to the service supervisor.

Status providers can be registered through Systemd.addStatusProviders(StatusProvider...)

Status providers only report the status: they must not drive the lifecycle of the application with Systemd.ready(), Systemd.stopping() or Systemd.close(), as they are called from the periodic status updates, which Systemd.close() waits for.

Author:
Joao Silva
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Exposes status information to send to systemd.
  • Method Details

    • status

      default String status()
      Exposes status information to send to systemd.
      Returns:
      the string message to add to the service status