java.lang.Object
org.elasticsearch.nativeaccess.Systemd
Wraps access to notifications to systemd.
Systemd notifications are done through a Unix socket. Although Java does support opening unix sockets, it unfortunately does not support datagram sockets. This class instead opens and communicates with the socket using native methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
notify_extend_timeout
(long seconds) void
Notify systemd that the process is ready.void
-
Method Details
-
notify_ready
public void notify_ready()Notify systemd that the process is ready.- Throws:
RuntimeException
- on failure to notify systemd
-
notify_extend_timeout
public void notify_extend_timeout(long seconds) -
notify_stopping
public void notify_stopping()
-