java.lang.Object
de.thjom.java.systemd.AbstractAdapter
de.thjom.java.systemd.InterfaceAdapter
de.thjom.java.systemd.Manager
- All Implemented Interfaces:
org.freedesktop.dbus.interfaces.DBusInterface
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.thjom.java.systemd.InterfaceAdapter
InterfaceAdapter.AdapterProperty -
Field Summary
FieldsFields inherited from class de.thjom.java.systemd.InterfaceAdapter
dbus, propertiesFields inherited from class de.thjom.java.systemd.AbstractAdapter
unitStateListeners -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateManager(org.freedesktop.dbus.connections.impl.DBusConnection dbus, ManagerInterface iface) -
Method Summary
Modifier and TypeMethodDescriptionaddDependencyUnitFiles(List<String> names, String target, String type, boolean runtime, boolean force) voidcancelJob(long id) voidvoid(package private) static Managercreate(org.freedesktop.dbus.connections.impl.DBusConnection dbus) disableUnitFiles(List<String> names, boolean runtime) dump()enableUnitFiles(List<String> names, boolean runtime, boolean force) voidexit()voidfreezeUnit(String name) getAutomount(String name) getBusName(String name) longlongbytelonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonggetNJobs()longdoublelonglonglonglonggetService(String name) org.freedesktop.dbus.DBusPathgetUnitByPID(int pid) getUnitFileLinks(String name, boolean runtime) getUnitFileState(String name) getUnitProcesses(String name) longlonglonglonglonglongvoidhalt()booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidkExec()voidvoidlinkUnitFiles(List<String> names, boolean runtime, boolean force) org.freedesktop.dbus.DBusPathlonglookupDynamicUserByUID(long uid) maskUnitFiles(List<String> names, boolean runtime, boolean force) voidpowerOff()presetUnitFiles(List<String> names, boolean runtime, boolean force) presetUnitFilesWithMode(List<String> names, String mode, boolean runtime, boolean force) voidreboot()reenableUnitFiles(List<String> names, boolean runtime, boolean force) voidvoidvoidreload()org.freedesktop.dbus.DBusPathreloadOrRestartUnit(String name, Unit.Mode mode) org.freedesktop.dbus.DBusPathreloadOrRestartUnit(String name, String mode) org.freedesktop.dbus.DBusPathreloadOrTryRestartUnit(String name, Unit.Mode mode) org.freedesktop.dbus.DBusPathreloadOrTryRestartUnit(String name, String mode) org.freedesktop.dbus.DBusPathreloadUnit(String name, Unit.Mode mode) org.freedesktop.dbus.DBusPathreloadUnit(String name, String mode) voidvoidresetFailedUnit(String name) org.freedesktop.dbus.DBusPathrestartUnit(String name, Unit.Mode mode) org.freedesktop.dbus.DBusPathrestartUnit(String name, String mode) revertUnitFiles(List<String> names) setDefaultTarget(String name, boolean force) voidsetEnvironment(String name) voidsetExitCode(byte value) org.freedesktop.dbus.DBusPathorg.freedesktop.dbus.DBusPathorg.freedesktop.dbus.DBusPathorg.freedesktop.dbus.DBusPathvoidvoidswitchRoot(String newRoot, String init) voidorg.freedesktop.dbus.DBusPathtryRestartUnit(String name, Unit.Mode mode) org.freedesktop.dbus.DBusPathtryRestartUnit(String name, String mode) unmaskUnitFiles(List<String> names, boolean runtime) voidvoidunsetAndSetEnvironment(List<String> namesToUnset, List<String> namesToSet) voidunsetEnvironment(List<String> names) voidMethods inherited from class de.thjom.java.systemd.InterfaceAdapter
addHandler, equals, getObjectPath, getProperties, hashCode, isRemote, removeHandlerMethods inherited from class de.thjom.java.systemd.AbstractAdapter
addListener, createStateHandler, removeListener
-
Field Details
-
SERVICE_NAME
- See Also:
-
subscribed
private boolean subscribed
-
-
Constructor Details
-
Manager
private Manager(org.freedesktop.dbus.connections.impl.DBusConnection dbus, ManagerInterface iface) throws org.freedesktop.dbus.exceptions.DBusException - Throws:
org.freedesktop.dbus.exceptions.DBusException
-
-
Method Details
-
create
static Manager create(org.freedesktop.dbus.connections.impl.DBusConnection dbus) throws org.freedesktop.dbus.exceptions.DBusException - Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getInterface
- Overrides:
getInterfacein classInterfaceAdapter
-
introspect
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
addDependencyUnitFiles
-
cancelJob
public void cancelJob(long id) -
cleanUnit
-
clearJobs
public void clearJobs() -
disableUnitFiles
-
dump
-
enableUnitFiles
-
exit
public void exit() -
freezeUnit
-
getDefaultTarget
-
getDynamicUsers
-
getUnitByPID
public org.freedesktop.dbus.DBusPath getUnitByPID(int pid) -
getUnitFileLinks
-
getUnitFileState
-
getUnitProcesses
-
halt
public void halt() -
kExec
public void kExec() -
killUnit
-
killUnit
-
linkUnitFiles
-
listUnitFiles
-
listUnits
-
loadUnit
-
lookupDynamicUserByName
-
lookupDynamicUserByUID
-
maskUnitFiles
-
powerOff
public void powerOff() -
presetUnitFiles
-
presetUnitFilesWithMode
-
reboot
public void reboot() -
reenableUnitFiles
-
reexecute
public void reexecute() -
refUnit
-
reload
public void reload() -
reloadOrRestartUnit
-
reloadOrRestartUnit
-
reloadOrTryRestartUnit
-
reloadOrTryRestartUnit
-
reloadUnit
-
reloadUnit
-
resetFailed
public void resetFailed() -
resetFailedUnit
-
restartUnit
-
restartUnit
-
revertUnitFiles
-
setDefaultTarget
-
setEnvironment
-
setExitCode
public void setExitCode(byte value) -
startUnit
-
startUnit
-
stopUnit
-
stopUnit
-
subscribe
public void subscribe() -
switchRoot
-
thawUnit
-
tryRestartUnit
-
tryRestartUnit
-
unmaskUnitFiles
-
unrefUnit
-
unsetAndSetEnvironment
-
unsetEnvironment
-
unsubscribe
public void unsubscribe() -
getAutomount
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getBusName
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getDevice
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getMount
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getPath
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getScope
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getService
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getSlice
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getSocket
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getSwap
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getTarget
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getTimer
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getUnit
- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getArchitecture
-
isConfirmSpawn
public boolean isConfirmSpawn() -
getControlGroup
-
isDefaultBlockIOAccounting
public boolean isDefaultBlockIOAccounting() -
isDefaultCPUAccounting
public boolean isDefaultCPUAccounting() -
getDefaultLimitAS
-
getDefaultLimitASSoft
-
getDefaultLimitCORE
-
getDefaultLimitCORESoft
-
getDefaultLimitCPU
-
getDefaultLimitCPUSoft
-
getDefaultLimitDATA
-
getDefaultLimitDATASoft
-
getDefaultLimitFSIZE
-
getDefaultLimitFSIZESoft
-
getDefaultLimitLOCKS
-
getDefaultLimitLOCKSSoft
-
getDefaultLimitMEMLOCK
-
getDefaultLimitMEMLOCKSoft
-
getDefaultLimitMSGQUEUE
-
getDefaultLimitMSGQUEUESoft
-
getDefaultLimitNICE
-
getDefaultLimitNICESoft
-
getDefaultLimitNOFILE
-
getDefaultLimitNOFILESoft
-
getDefaultLimitNPROC
-
getDefaultLimitNPROCSoft
-
getDefaultLimitRSS
-
getDefaultLimitRSSSoft
-
getDefaultLimitRTPRIO
-
getDefaultLimitRTPRIOSoft
-
getDefaultLimitRTTIME
-
getDefaultLimitRTTIMESoft
-
getDefaultLimitSIGPENDING
-
getDefaultLimitSIGPENDINGSoft
-
getDefaultLimitSTACK
-
getDefaultLimitSTACKSoft
-
isDefaultMemoryAccounting
public boolean isDefaultMemoryAccounting() -
getDefaultOOMPolicy
-
getDefaultRestartUSec
-
getDefaultStandardError
-
getDefaultStandardOutput
-
getDefaultStartLimitBurst
public long getDefaultStartLimitBurst() -
getDefaultStartLimitIntervalUSec
public long getDefaultStartLimitIntervalUSec() -
isDefaultTasksAccounting
public boolean isDefaultTasksAccounting() -
getDefaultTasksMax
-
getDefaultTimeoutAbortUSec
-
getDefaultTimeoutStartUSec
-
getDefaultTimeoutStopUSec
-
getDefaultTimerAccuracyUSec
-
getEnvironment
-
getExitCode
public byte getExitCode() -
getFeatures
-
getFinishTimestamp
public long getFinishTimestamp() -
getFinishTimestampMonotonic
public long getFinishTimestampMonotonic() -
getFirmwareTimestamp
public long getFirmwareTimestamp() -
getFirmwareTimestampMonotonic
public long getFirmwareTimestampMonotonic() -
getGeneratorsFinishTimestamp
public long getGeneratorsFinishTimestamp() -
getGeneratorsFinishTimestampMonotonic
public long getGeneratorsFinishTimestampMonotonic() -
getGeneratorsStartTimestamp
public long getGeneratorsStartTimestamp() -
getGeneratorsStartTimestampMonotonic
public long getGeneratorsStartTimestampMonotonic() -
getInitRDGeneratorsFinishTimestamp
public long getInitRDGeneratorsFinishTimestamp() -
getInitRDGeneratorsFinishTimestampMonotonic
public long getInitRDGeneratorsFinishTimestampMonotonic() -
getInitRDGeneratorsStartTimestamp
public long getInitRDGeneratorsStartTimestamp() -
getInitRDGeneratorsStartTimestampMonotonic
public long getInitRDGeneratorsStartTimestampMonotonic() -
getInitRDSecurityFinishTimestamp
public long getInitRDSecurityFinishTimestamp() -
getInitRDSecurityFinishTimestampMonotonic
public long getInitRDSecurityFinishTimestampMonotonic() -
getInitRDSecurityStartTimestamp
public long getInitRDSecurityStartTimestamp() -
getInitRDSecurityStartTimestampMonotonic
public long getInitRDSecurityStartTimestampMonotonic() -
getInitRDTimestamp
public long getInitRDTimestamp() -
getInitRDTimestampMonotonic
public long getInitRDTimestampMonotonic() -
getInitRDUnitsLoadFinishTimestamp
public long getInitRDUnitsLoadFinishTimestamp() -
getInitRDUnitsLoadFinishTimestampMonotonic
public long getInitRDUnitsLoadFinishTimestampMonotonic() -
getInitRDUnitsLoadStartTimestamp
public long getInitRDUnitsLoadStartTimestamp() -
getInitRDUnitsLoadStartTimestampMonotonic
public long getInitRDUnitsLoadStartTimestampMonotonic() -
getKernelTimestamp
public long getKernelTimestamp() -
getKernelTimestampMonotonic
public long getKernelTimestampMonotonic() -
getKExecWatchdogUSec
-
getLoaderTimestamp
public long getLoaderTimestamp() -
getLoaderTimestampMonotonic
public long getLoaderTimestampMonotonic() -
getLogLevel
-
getLogTarget
-
getNFailedJobs
public long getNFailedJobs() -
getNFailedUnits
public long getNFailedUnits() -
getNInstalledJobs
public long getNInstalledJobs() -
getNJobs
public long getNJobs() -
getNNames
public long getNNames() -
getProgress
public double getProgress() -
getRebootWatchdogUSec
-
getRuntimeWatchdogUSec
-
getSecurityFinishTimestamp
public long getSecurityFinishTimestamp() -
getSecurityFinishTimestampMonotonic
public long getSecurityFinishTimestampMonotonic() -
getSecurityStartTimestamp
public long getSecurityStartTimestamp() -
getSecurityStartTimestampMonotonic
public long getSecurityStartTimestampMonotonic() -
isServiceWatchdogs
public boolean isServiceWatchdogs() -
isShowStatus
public boolean isShowStatus() -
getSystemState
-
getTainted
-
getTimerSlackNSec
-
getUnitPath
-
getUnitsLoadFinishTimestamp
public long getUnitsLoadFinishTimestamp() -
getUnitsLoadFinishTimestampMonotonic
public long getUnitsLoadFinishTimestampMonotonic() -
getUnitsLoadStartTimestamp
public long getUnitsLoadStartTimestamp() -
getUnitsLoadStartTimestampMonotonic
public long getUnitsLoadStartTimestampMonotonic() -
getUserspaceTimestamp
public long getUserspaceTimestamp() -
getUserspaceTimestampMonotonic
public long getUserspaceTimestampMonotonic() -
getVersion
-
getVirtualization
-