Package hudson.lifecycle
Class SystemdLifecycle
java.lang.Object
hudson.lifecycle.Lifecycle
hudson.lifecycle.ExitLifecycle
hudson.lifecycle.SystemdLifecycle
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class SystemdLifecycle
extends ExitLifecycle
Lifecycle that delegates its responsibility to systemd(1).- Author:
- Basil Crow
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.lifecycle.Lifecycle
Lifecycle.PlaceholderLifecycle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonExtendTimeout(long timeout, TimeUnit unit) Tell the service manager to extend the startup or shutdown timeout.voidonReady()Called when Jenkins startup is finished or when Jenkins has finished reloading its configuration.voidCalled when Jenkins is reloading its configuration.voidonStatusUpdate(String status) Called when Jenkins service state has changed.voidCalled when Jenkins is beginning its shutdown.Methods inherited from class hudson.lifecycle.ExitLifecycle
onBootFailure, restartMethods inherited from class hudson.lifecycle.Lifecycle
canRestart, canRewriteHudsonWar, get, getHudsonWar, rewriteHudsonWar, supportsDynamicLoad, verifyRestartable
-
Constructor Details
-
SystemdLifecycle
public SystemdLifecycle()
-
-
Method Details
-
onReady
public void onReady()Description copied from class:LifecycleCalled when Jenkins startup is finished or when Jenkins has finished reloading its configuration. -
onReload
Description copied from class:LifecycleCalled when Jenkins is reloading its configuration.Callers must also send an
Lifecycle.onReady()notification when Jenkins has finished reloading its configuration. -
onStop
Description copied from class:LifecycleCalled when Jenkins is beginning its shutdown. -
onExtendTimeout
Description copied from class:LifecycleTell the service manager to extend the startup or shutdown timeout. The value specified is a time during which eitherLifecycle.onExtendTimeout(long, TimeUnit)must be called again or startup/shutdown must complete.- Overrides:
onExtendTimeoutin classLifecycle- Parameters:
timeout- The amount by which to extend the timeout.unit- The time unit of the timeout argument.
-
onStatusUpdate
Description copied from class:LifecycleCalled when Jenkins service state has changed.- Overrides:
onStatusUpdatein classLifecycle- 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.
-