Class SystemdLifecycle
java.lang.Object
com.github.jpmsilva.jsystemd.SystemdLifecycle
- All Implemented Interfaces:
Lifecycle, Phased, SmartLifecycle
Implementation of
SmartLifecycle that logs systemd integration status on startup, and sends a stopping signal when the application is shutting down.- Author:
- Joao Silva
- See Also:
-
Field Summary
Fields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionSystemdLifecycle(Systemd systemd) Creates a new instance using the providedSystemdas the integration point. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SmartLifecycle
getPhase, isAutoStartup, isPauseable, stop
-
Constructor Details
-
SystemdLifecycle
-
-
Method Details
-
start
-
stop
-
isRunning
-