Package com.github.jpmsilva.jsystemd
@NullMarked
package com.github.jpmsilva.jsystemd
Integration of Java applications with systemd, through its notification protocol.
Types are not null unless annotated as Nullable.
-
ClassDescriptionImplementation of
StatusProviderthat provides the memory used by the direct and mapped buffers, such asBuffers: 64.0 MiB/1.0 GiB direct (412); 2.0 GiB mapped (3).Implementation ofStatusProviderthat provides the memory used by the control group of the process, out of its limit, such asCgroup memory: 700.0 MiB/1.0 GiB, or without the limit when there is none, such asCgroup memory: 700.0 MiB.Implementation ofStatusProviderthat provides information regarding loaded classes.Implementation ofStatusProviderthat provides the CPU usage, such asCPU: 12.5% process; 40.1% system; load 1.20: the share of the available processors the process used since the status was last read, or since this provider was created, the recent CPU usage of the whole system, and the system load average over the last minute.Base class for the health providers that support delaying their unhealthy state: while the delay has not elapsed since the application became unhealthy, it is reported as healthy, so that the systemd watchdog does not restart it on short outages.Implementation ofStatusProviderthat provides information regarding a thread pool: the busy threads out of the threads in the pool, and the tasks waiting for a thread, such asworkers: 3/10 threads, 5 queued.Provides information regarding the file descriptors of the process: as aStatusProvider, the open file descriptors out of the most the process can open, such asFile descriptors: 812/65536, and as aHealthProvider, for the systemd watchdog, reporting the application as unhealthy when they are about to run out, if enabled.Implementation ofStatusProviderthat provides the garbage collection pauses since the status was last read, or since this provider was created: how many there were, and the share of the time they took, such asGC: 12 pauses, 0.4% of time.A health provider can be used to control the watchdog heartbeat.The health state of an application.Implementation ofStatusProviderthat provides the memory used by the heap, out of its committed size, such asHeap: 139.5 MiB/256.0 MiB.Implementation ofStatusProviderthat provides the memory used outside of the heap by the JVM, such as by the metaspace and the code cache, out of its committed size, such asNon-heap: 62.7 MiB/64.1 MiB.Implementation ofStatusProviderthat provides the memory used by the old generation of the heap after the last garbage collection, out of its maximum size (or its committed size, when it has no maximum), such asOld gen after GC: 120.0 MiB/512.0 MiB.Implementation ofStatusProviderwhose status is set by the application, to report what it is doing, such asReindexing 40%orMigrating the schema.Interface that represents any object that can contribute with status information regarding the running process to the service supervisor.The main systemd integration class.Low level API that sends notifications to systemd, through the socket in the environment variableNOTIFY_SOCKET.Provides information regarding the live threads: as aStatusProvider, the number of threads by state, and the number of deadlocked threads, if any, for the systemd status, and as aHealthProvider, for the systemd watchdog, reporting the application as unhealthy under the health conditions it is configured with.