Class SystemdNotify
java.lang.Object
one.nio.os.systemd.SystemdNotify
Notify service manager about start-up completion and other service status changes
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprivate static final org.slf4j.Loggerstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiderrno(int errno) static voidextendTimeoutUsec(int usec) static voidmainPid(int pid) static voidstatic voidready()static voidstatic voidstatic voidstopping()static voidwatchdog()static voidstatic voidwatchdogUsec(int usec)
-
Field Details
-
log
private static final org.slf4j.Logger log -
NOTIFY_SOCKET_ENV
- See Also:
-
READY
- See Also:
-
RELOADING
- See Also:
-
STOPPING
- See Also:
-
STATUS
- See Also:
-
ERRNO
- See Also:
-
BUSERROR
- See Also:
-
MAINPID
- See Also:
-
WATCHDOG
- See Also:
-
WATCHDOG_TRIGGER
- See Also:
-
WATCHDOG_USEC
- See Also:
-
EXTEND_TIMEOUT_USEC
- See Also:
-
-
Constructor Details
-
SystemdNotify
public SystemdNotify()
-
-
Method Details
-
notify
- Throws:
IOException
-
ready
- Throws:
IOException
-
reloading
- Throws:
IOException
-
stopping
- Throws:
IOException
-
status
- Throws:
IOException
-
errno
- Throws:
IOException
-
busError
- Throws:
IOException
-
mainPid
- Throws:
IOException
-
watchdog
- Throws:
IOException
-
watchdogTrigger
- Throws:
IOException
-
watchdogUsec
- Throws:
IOException
-
extendTimeoutUsec
- Throws:
IOException
-