Package one.nio.os.systemd
Class SystemdNotify
- java.lang.Object
-
- one.nio.os.systemd.SystemdNotify
-
public class SystemdNotify extends java.lang.ObjectNotify 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 java.lang.StringBUSERRORstatic java.lang.StringERRNOstatic java.lang.StringEXTEND_TIMEOUT_USECprivate static org.slf4j.Loggerlogstatic java.lang.StringMAINPIDstatic java.lang.StringNOTIFY_SOCKET_ENVstatic java.lang.StringREADYstatic java.lang.StringRELOADINGstatic java.lang.StringSTATUSstatic java.lang.StringSTOPPINGstatic java.lang.StringWATCHDOGstatic java.lang.StringWATCHDOG_TRIGGERstatic java.lang.StringWATCHDOG_USEC
-
Constructor Summary
Constructors Constructor Description SystemdNotify()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbusError(java.lang.String error)static voiderrno(int errno)static voidextendTimeoutUsec(int usec)static voidmainPid(int pid)static voidnotify(java.lang.String state)static voidready()static voidreloading()static voidstatus(java.lang.String text)static voidstopping()static voidwatchdog()static voidwatchdogTrigger()static voidwatchdogUsec(int usec)
-
-
-
Field Detail
-
log
private static final org.slf4j.Logger log
-
NOTIFY_SOCKET_ENV
public static final java.lang.String NOTIFY_SOCKET_ENV
- See Also:
- Constant Field Values
-
READY
public static final java.lang.String READY
- See Also:
- Constant Field Values
-
RELOADING
public static final java.lang.String RELOADING
- See Also:
- Constant Field Values
-
STOPPING
public static final java.lang.String STOPPING
- See Also:
- Constant Field Values
-
STATUS
public static final java.lang.String STATUS
- See Also:
- Constant Field Values
-
ERRNO
public static final java.lang.String ERRNO
- See Also:
- Constant Field Values
-
BUSERROR
public static final java.lang.String BUSERROR
- See Also:
- Constant Field Values
-
MAINPID
public static final java.lang.String MAINPID
- See Also:
- Constant Field Values
-
WATCHDOG
public static final java.lang.String WATCHDOG
- See Also:
- Constant Field Values
-
WATCHDOG_TRIGGER
public static final java.lang.String WATCHDOG_TRIGGER
- See Also:
- Constant Field Values
-
WATCHDOG_USEC
public static final java.lang.String WATCHDOG_USEC
- See Also:
- Constant Field Values
-
EXTEND_TIMEOUT_USEC
public static final java.lang.String EXTEND_TIMEOUT_USEC
- See Also:
- Constant Field Values
-
-
Method Detail
-
notify
public static void notify(java.lang.String state) throws java.io.IOException- Throws:
java.io.IOException
-
ready
public static void ready() throws java.io.IOException- Throws:
java.io.IOException
-
reloading
public static void reloading() throws java.io.IOException- Throws:
java.io.IOException
-
stopping
public static void stopping() throws java.io.IOException- Throws:
java.io.IOException
-
status
public static void status(java.lang.String text) throws java.io.IOException- Throws:
java.io.IOException
-
errno
public static void errno(int errno) throws java.io.IOException- Throws:
java.io.IOException
-
busError
public static void busError(java.lang.String error) throws java.io.IOException- Throws:
java.io.IOException
-
mainPid
public static void mainPid(int pid) throws java.io.IOException- Throws:
java.io.IOException
-
watchdog
public static void watchdog() throws java.io.IOException- Throws:
java.io.IOException
-
watchdogTrigger
public static void watchdogTrigger() throws java.io.IOException- Throws:
java.io.IOException
-
watchdogUsec
public static void watchdogUsec(int usec) throws java.io.IOException- Throws:
java.io.IOException
-
extendTimeoutUsec
public static void extendTimeoutUsec(int usec) throws java.io.IOException- Throws:
java.io.IOException
-
-