Class Manager

All Implemented Interfaces:
org.freedesktop.dbus.interfaces.DBusInterface

public class Manager extends InterfaceAdapter
  • Field Details

  • 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

      public ManagerInterface getInterface()
      Overrides:
      getInterface in class InterfaceAdapter
    • introspect

      public String introspect() throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • addDependencyUnitFiles

      public List<UnitFileChange> addDependencyUnitFiles(List<String> names, String target, String type, boolean runtime, boolean force)
    • cancelJob

      public void cancelJob(long id)
    • cleanUnit

      public void cleanUnit(String name, List<String> mask)
    • clearJobs

      public void clearJobs()
    • disableUnitFiles

      public List<UnitFileChange> disableUnitFiles(List<String> names, boolean runtime)
    • dump

      public String dump()
    • enableUnitFiles

      public Pair<Boolean,List<UnitFileChange>> enableUnitFiles(List<String> names, boolean runtime, boolean force)
    • exit

      public void exit()
    • freezeUnit

      public void freezeUnit(String name)
    • getDefaultTarget

      public String getDefaultTarget()
    • getDynamicUsers

      public List<DynamicUser> getDynamicUsers()
    • getUnitByPID

      public org.freedesktop.dbus.DBusPath getUnitByPID(int pid)
    • getUnitFileLinks

      public List<String> getUnitFileLinks(String name, boolean runtime)
    • getUnitFileState

      public String getUnitFileState(String name)
    • getUnitProcesses

      public List<UnitProcessType> getUnitProcesses(String name)
    • halt

      public void halt()
    • kExec

      public void kExec()
    • killUnit

      public void killUnit(String name, Unit.Who who, int signal)
    • killUnit

      public void killUnit(String name, String who, int signal)
    • linkUnitFiles

      public List<UnitFileChange> linkUnitFiles(List<String> names, boolean runtime, boolean force)
    • listUnitFiles

      public List<UnitFileType> listUnitFiles()
    • listUnits

      public List<UnitType> listUnits()
    • loadUnit

      public org.freedesktop.dbus.DBusPath loadUnit(String name)
    • lookupDynamicUserByName

      public long lookupDynamicUserByName(String name)
    • lookupDynamicUserByUID

      public String lookupDynamicUserByUID(long uid)
    • maskUnitFiles

      public List<UnitFileChange> maskUnitFiles(List<String> names, boolean runtime, boolean force)
    • powerOff

      public void powerOff()
    • presetUnitFiles

      public Pair<Boolean,List<UnitFileInstallChange>> presetUnitFiles(List<String> names, boolean runtime, boolean force)
    • presetUnitFilesWithMode

      public Pair<Boolean,List<UnitFileInstallChange>> presetUnitFilesWithMode(List<String> names, String mode, boolean runtime, boolean force)
    • reboot

      public void reboot()
    • reenableUnitFiles

      public Pair<Boolean,List<UnitFileInstallChange>> reenableUnitFiles(List<String> names, boolean runtime, boolean force)
    • reexecute

      public void reexecute()
    • refUnit

      public void refUnit(String name)
    • reload

      public void reload()
    • reloadOrRestartUnit

      public org.freedesktop.dbus.DBusPath reloadOrRestartUnit(String name, Unit.Mode mode)
    • reloadOrRestartUnit

      public org.freedesktop.dbus.DBusPath reloadOrRestartUnit(String name, String mode)
    • reloadOrTryRestartUnit

      public org.freedesktop.dbus.DBusPath reloadOrTryRestartUnit(String name, Unit.Mode mode)
    • reloadOrTryRestartUnit

      public org.freedesktop.dbus.DBusPath reloadOrTryRestartUnit(String name, String mode)
    • reloadUnit

      public org.freedesktop.dbus.DBusPath reloadUnit(String name, Unit.Mode mode)
    • reloadUnit

      public org.freedesktop.dbus.DBusPath reloadUnit(String name, String mode)
    • resetFailed

      public void resetFailed()
    • resetFailedUnit

      public void resetFailedUnit(String name)
    • restartUnit

      public org.freedesktop.dbus.DBusPath restartUnit(String name, Unit.Mode mode)
    • restartUnit

      public org.freedesktop.dbus.DBusPath restartUnit(String name, String mode)
    • revertUnitFiles

      public List<UnitFileChange> revertUnitFiles(List<String> names)
    • setDefaultTarget

      public List<UnitFileChange> setDefaultTarget(String name, boolean force)
    • setEnvironment

      public void setEnvironment(String name)
    • setExitCode

      public void setExitCode(byte value)
    • startUnit

      public org.freedesktop.dbus.DBusPath startUnit(String name, Unit.Mode mode)
    • startUnit

      public org.freedesktop.dbus.DBusPath startUnit(String name, String mode)
    • stopUnit

      public org.freedesktop.dbus.DBusPath stopUnit(String name, Unit.Mode mode)
    • stopUnit

      public org.freedesktop.dbus.DBusPath stopUnit(String name, String mode)
    • subscribe

      public void subscribe()
    • switchRoot

      public void switchRoot(String newRoot, String init)
    • thawUnit

      public void thawUnit(String name)
    • tryRestartUnit

      public org.freedesktop.dbus.DBusPath tryRestartUnit(String name, Unit.Mode mode)
    • tryRestartUnit

      public org.freedesktop.dbus.DBusPath tryRestartUnit(String name, String mode)
    • unmaskUnitFiles

      public List<UnitFileChange> unmaskUnitFiles(List<String> names, boolean runtime)
    • unrefUnit

      public void unrefUnit(String name)
    • unsetAndSetEnvironment

      public void unsetAndSetEnvironment(List<String> namesToUnset, List<String> namesToSet)
    • unsetEnvironment

      public void unsetEnvironment(List<String> names)
    • unsubscribe

      public void unsubscribe()
    • getAutomount

      public Automount getAutomount(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getBusName

      public BusName getBusName(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getDevice

      public Device getDevice(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getMount

      public Mount getMount(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getPath

      public Path getPath(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getScope

      public Scope getScope(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getService

      public Service getService(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getSlice

      public Slice getSlice(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getSocket

      public Socket getSocket(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getSwap

      public Swap getSwap(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getTarget

      public Target getTarget(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getTimer

      public Timer getTimer(String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getUnit

      public Unit getUnit(String fullName) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getArchitecture

      public String getArchitecture()
    • isConfirmSpawn

      public boolean isConfirmSpawn()
    • getControlGroup

      public String getControlGroup()
    • isDefaultBlockIOAccounting

      public boolean isDefaultBlockIOAccounting()
    • isDefaultCPUAccounting

      public boolean isDefaultCPUAccounting()
    • getDefaultLimitAS

      public BigInteger getDefaultLimitAS()
    • getDefaultLimitASSoft

      public BigInteger getDefaultLimitASSoft()
    • getDefaultLimitCORE

      public BigInteger getDefaultLimitCORE()
    • getDefaultLimitCORESoft

      public BigInteger getDefaultLimitCORESoft()
    • getDefaultLimitCPU

      public BigInteger getDefaultLimitCPU()
    • getDefaultLimitCPUSoft

      public BigInteger getDefaultLimitCPUSoft()
    • getDefaultLimitDATA

      public BigInteger getDefaultLimitDATA()
    • getDefaultLimitDATASoft

      public BigInteger getDefaultLimitDATASoft()
    • getDefaultLimitFSIZE

      public BigInteger getDefaultLimitFSIZE()
    • getDefaultLimitFSIZESoft

      public BigInteger getDefaultLimitFSIZESoft()
    • getDefaultLimitLOCKS

      public BigInteger getDefaultLimitLOCKS()
    • getDefaultLimitLOCKSSoft

      public BigInteger getDefaultLimitLOCKSSoft()
    • getDefaultLimitMEMLOCK

      public BigInteger getDefaultLimitMEMLOCK()
    • getDefaultLimitMEMLOCKSoft

      public BigInteger getDefaultLimitMEMLOCKSoft()
    • getDefaultLimitMSGQUEUE

      public BigInteger getDefaultLimitMSGQUEUE()
    • getDefaultLimitMSGQUEUESoft

      public BigInteger getDefaultLimitMSGQUEUESoft()
    • getDefaultLimitNICE

      public BigInteger getDefaultLimitNICE()
    • getDefaultLimitNICESoft

      public BigInteger getDefaultLimitNICESoft()
    • getDefaultLimitNOFILE

      public BigInteger getDefaultLimitNOFILE()
    • getDefaultLimitNOFILESoft

      public BigInteger getDefaultLimitNOFILESoft()
    • getDefaultLimitNPROC

      public BigInteger getDefaultLimitNPROC()
    • getDefaultLimitNPROCSoft

      public BigInteger getDefaultLimitNPROCSoft()
    • getDefaultLimitRSS

      public BigInteger getDefaultLimitRSS()
    • getDefaultLimitRSSSoft

      public BigInteger getDefaultLimitRSSSoft()
    • getDefaultLimitRTPRIO

      public BigInteger getDefaultLimitRTPRIO()
    • getDefaultLimitRTPRIOSoft

      public BigInteger getDefaultLimitRTPRIOSoft()
    • getDefaultLimitRTTIME

      public BigInteger getDefaultLimitRTTIME()
    • getDefaultLimitRTTIMESoft

      public BigInteger getDefaultLimitRTTIMESoft()
    • getDefaultLimitSIGPENDING

      public BigInteger getDefaultLimitSIGPENDING()
    • getDefaultLimitSIGPENDINGSoft

      public BigInteger getDefaultLimitSIGPENDINGSoft()
    • getDefaultLimitSTACK

      public BigInteger getDefaultLimitSTACK()
    • getDefaultLimitSTACKSoft

      public BigInteger getDefaultLimitSTACKSoft()
    • isDefaultMemoryAccounting

      public boolean isDefaultMemoryAccounting()
    • getDefaultOOMPolicy

      public String getDefaultOOMPolicy()
    • getDefaultRestartUSec

      public BigInteger getDefaultRestartUSec()
    • getDefaultStandardError

      public String getDefaultStandardError()
    • getDefaultStandardOutput

      public String getDefaultStandardOutput()
    • getDefaultStartLimitBurst

      public long getDefaultStartLimitBurst()
    • getDefaultStartLimitIntervalUSec

      public long getDefaultStartLimitIntervalUSec()
    • isDefaultTasksAccounting

      public boolean isDefaultTasksAccounting()
    • getDefaultTasksMax

      public BigInteger getDefaultTasksMax()
    • getDefaultTimeoutAbortUSec

      public BigInteger getDefaultTimeoutAbortUSec()
    • getDefaultTimeoutStartUSec

      public BigInteger getDefaultTimeoutStartUSec()
    • getDefaultTimeoutStopUSec

      public BigInteger getDefaultTimeoutStopUSec()
    • getDefaultTimerAccuracyUSec

      public BigInteger getDefaultTimerAccuracyUSec()
    • getEnvironment

      public List<String> getEnvironment()
    • getExitCode

      public byte getExitCode()
    • getFeatures

      public String 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

      public BigInteger getKExecWatchdogUSec()
    • getLoaderTimestamp

      public long getLoaderTimestamp()
    • getLoaderTimestampMonotonic

      public long getLoaderTimestampMonotonic()
    • getLogLevel

      public String getLogLevel()
    • getLogTarget

      public String 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

      public BigInteger getRebootWatchdogUSec()
    • getRuntimeWatchdogUSec

      public BigInteger 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

      public String getSystemState()
    • getTainted

      public String getTainted()
    • getTimerSlackNSec

      public BigInteger getTimerSlackNSec()
    • getUnitPath

      public List<String> 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

      public String getVersion()
    • getVirtualization

      public String getVirtualization()