-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Markus Enax edited this page Aug 27, 2016
·
18 revisions
This Java library provides access to systemd via D-Bus. It features:
- Simultaneous connectivity to the system and the user instance of the Java process owner
- Access to the particular instance-wide 'Manager' interface, including
- Method calls (ListUnits, StartUnit, StopUnit, RestartUnit, etc.)
- Property access (Environment, SystemState, KernelTimestamp, etc.)
- Convenience methods for instantiation of unit wrappers (see next bullet)
- Access to methods and properties of the 'Unit' interface and all derived interfaces, like
- Device
- Mount
- Service
- Target
- ...
- Encapsulation of complex properties into objects with meaningful fields
- Utility methods (timestamp conversion, path escaping, etc.)
dbus-java is required for this library to work. At the time of writing no pre-built JAR is available in the usual placed yet (e.g. central repository) hence you have to build and install it manually in your local repository. A Maven compatible fork is available here.
Maven is used as the primary build system.