Class SystemdLifecycle

    • Constructor Detail

      • SystemdLifecycle

        public SystemdLifecycle()
    • Method Detail

      • onReady

        public void onReady()
        Description copied from class: Lifecycle
        Called when Jenkins startup is finished or when Jenkins has finished reloading its configuration.
        Overrides:
        onReady in class Lifecycle
      • onReload

        public void onReload​(@NonNull
                             String user,
                             @CheckForNull
                             String remoteAddr)
        Description copied from class: Lifecycle
        Called when Jenkins is reloading its configuration.

        Callers must also send an Lifecycle.onReady() notification when Jenkins has finished reloading its configuration.

        Overrides:
        onReload in class Lifecycle
      • onStop

        public void onStop​(@NonNull
                           String user,
                           @CheckForNull
                           String remoteAddr)
        Description copied from class: Lifecycle
        Called when Jenkins is beginning its shutdown.
        Overrides:
        onStop in class Lifecycle
      • onExtendTimeout

        public void onExtendTimeout​(long timeout,
                                    @NonNull
                                    TimeUnit unit)
        Description copied from class: Lifecycle
        Tell the service manager to extend the startup or shutdown timeout. The value specified is a time during which either Lifecycle.onExtendTimeout(long, TimeUnit) must be called again or startup/shutdown must complete.
        Overrides:
        onExtendTimeout in class Lifecycle
        Parameters:
        timeout - The amount by which to extend the timeout.
        unit - The time unit of the timeout argument.
      • onStatusUpdate

        public void onStatusUpdate​(String status)
        Description copied from class: Lifecycle
        Called when Jenkins service state has changed.
        Overrides:
        onStatusUpdate in class Lifecycle
        Parameters:
        status - The status string. This is free-form and can be used for various purposes: general state feedback, completion percentages, human-readable error message, etc.