Package one.nio.os.systemd
Class SystemdNotify
- java.lang.Object
-
- one.nio.os.systemd.SystemdNotify
-
public class SystemdNotify extends Object
Notify service manager about start-up completion and other service status changes- See Also:
- man:sd_notify(3)
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUSERRORstatic StringERRNOstatic StringEXTEND_TIMEOUT_USECstatic StringMAINPIDstatic StringNOTIFY_SOCKET_ENVstatic StringREADYstatic StringRELOADINGstatic StringSTATUSstatic StringSTOPPINGstatic StringWATCHDOGstatic StringWATCHDOG_TRIGGERstatic StringWATCHDOG_USEC
-
Constructor Summary
Constructors Constructor Description SystemdNotify()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbusError(String error)static voiderrno(int errno)static voidextendTimeoutUsec(int usec)static voidmainPid(int pid)static voidnotify(String state)static voidready()static voidreloading()static voidstatus(String text)static voidstopping()static voidwatchdog()static voidwatchdogTrigger()static voidwatchdogUsec(int usec)
-
-
-
Field Detail
-
NOTIFY_SOCKET_ENV
public static final String NOTIFY_SOCKET_ENV
- See Also:
- Constant Field Values
-
READY
public static final String READY
- See Also:
- Constant Field Values
-
RELOADING
public static final String RELOADING
- See Also:
- Constant Field Values
-
STOPPING
public static final String STOPPING
- See Also:
- Constant Field Values
-
STATUS
public static final String STATUS
- See Also:
- Constant Field Values
-
ERRNO
public static final String ERRNO
- See Also:
- Constant Field Values
-
BUSERROR
public static final String BUSERROR
- See Also:
- Constant Field Values
-
MAINPID
public static final String MAINPID
- See Also:
- Constant Field Values
-
WATCHDOG
public static final String WATCHDOG
- See Also:
- Constant Field Values
-
WATCHDOG_TRIGGER
public static final String WATCHDOG_TRIGGER
- See Also:
- Constant Field Values
-
WATCHDOG_USEC
public static final String WATCHDOG_USEC
- See Also:
- Constant Field Values
-
EXTEND_TIMEOUT_USEC
public static final String EXTEND_TIMEOUT_USEC
- See Also:
- Constant Field Values
-
-
Method Detail
-
notify
public static void notify(String state) throws IOException
- Throws:
IOException
-
ready
public static void ready() throws IOException- Throws:
IOException
-
reloading
public static void reloading() throws IOException- Throws:
IOException
-
stopping
public static void stopping() throws IOException- Throws:
IOException
-
status
public static void status(String text) throws IOException
- Throws:
IOException
-
errno
public static void errno(int errno) throws IOException- Throws:
IOException
-
busError
public static void busError(String error) throws IOException
- Throws:
IOException
-
mainPid
public static void mainPid(int pid) throws IOException- Throws:
IOException
-
watchdog
public static void watchdog() throws IOException- Throws:
IOException
-
watchdogTrigger
public static void watchdogTrigger() throws IOException- Throws:
IOException
-
watchdogUsec
public static void watchdogUsec(int usec) throws IOException- Throws:
IOException
-
extendTimeoutUsec
public static void extendTimeoutUsec(int usec) throws IOException- Throws:
IOException
-
-