java.lang.Object
de.thjom.java.systemd.AbstractAdapter
de.thjom.java.systemd.UnitMonitor
de.thjom.java.systemd.UnitNameMonitor
- All Implemented Interfaces:
UnitStateNotifier
-
Nested Class Summary
Nested classes/interfaces inherited from class de.thjom.java.systemd.UnitMonitor
UnitMonitor.ReloadingHandler, UnitMonitor.UnitFilesChangedHandler -
Field Summary
FieldsFields inherited from class de.thjom.java.systemd.UnitMonitor
ERROR_MSG_MONITOR_REFRESH, log, manager, monitoredUnits, reloadingHandler, unitFilesChangedHandler, unitMonitorListenersFields inherited from class de.thjom.java.systemd.AbstractAdapter
unitStateListeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanmonitorsUnit(String unitName) voidrefresh()voidremoveUnits(Unit... units) voidremoveUnits(String... fullUnitNames) voidreset()Methods inherited from class de.thjom.java.systemd.UnitMonitor
addDefaultHandlers, addHandler, addListener, createStateHandler, createTimer, findMonitoredUnit, getMonitoredUnit, getMonitoredUnits, removeDefaultHandlers, removeHandler, removeListener, startPolling, stopPollingMethods inherited from class de.thjom.java.systemd.AbstractAdapter
addListener, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.thjom.java.systemd.UnitStateNotifier
addListener, removeListener
-
Field Details
-
monitoredNames
-
-
Constructor Details
-
UnitNameMonitor
-
-
Method Details
-
reset
public void reset()- Specified by:
resetin classUnitMonitor
-
refresh
public void refresh() throws org.freedesktop.dbus.exceptions.DBusException- Specified by:
refreshin classUnitMonitor- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
addUnits
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
addUnits
-
removeUnits
-
removeUnits
-
monitorsUnit
- Overrides:
monitorsUnitin classUnitMonitor
-