Class Service

All Implemented Interfaces:
CpuAccounting, DynamicUserAccounting, ExtendedCpuAccounting, ExtendedMemoryAccounting, Feature, IoAccounting, IpAccounting, MemoryAccounting, ResourceControl, TasksAccounting, Ulimit, UnitStateNotifier, org.freedesktop.dbus.interfaces.DBusInterface

  • Field Details

  • Constructor Details

    • Service

      private Service(Manager manager, ServiceInterface iface, String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
  • Method Details

    • create

      static Service create(Manager manager, String name) throws org.freedesktop.dbus.exceptions.DBusException
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • getInterface

      public ServiceInterface getInterface()
      Overrides:
      getInterface in class Unit
    • attachProcesses

      public void attachProcesses(String cgroupPath, long[] pids)
    • getProcesses

      public List<UnitProcessType> getProcesses()
    • getBusName

      public String getBusName()
    • getCapabilityBoundingSet

      public BigInteger getCapabilityBoundingSet()
    • getCleanResult

      public String getCleanResult()
    • getControlPID

      public long getControlPID()
    • getDeviceAllow

      public List<DeviceAllowControl> getDeviceAllow()
    • getDevicePolicy

      public String getDevicePolicy()
    • getEnvironment

      public List<String> getEnvironment()
    • getEnvironmentFiles

      public List<EnvironmentFile> getEnvironmentFiles()
    • getExecCondition

      public List<ExecutionInfo> getExecCondition()
    • getExecConditionEx

      public List<ExtendedExecutionInfo> getExecConditionEx()
    • getExecMainCode

      public int getExecMainCode()
    • getExecMainExitTimestamp

      public long getExecMainExitTimestamp()
    • getExecMainExitTimestampMonotonic

      public long getExecMainExitTimestampMonotonic()
    • getExecMainPID

      public long getExecMainPID()
    • getExecMainStartTimestamp

      public long getExecMainStartTimestamp()
    • getExecMainStartTimestampMonotonic

      public long getExecMainStartTimestampMonotonic()
    • getExecMainStatus

      public int getExecMainStatus()
    • getExecReload

      public List<ExecutionInfo> getExecReload()
    • getExecReloadEx

      public List<ExtendedExecutionInfo> getExecReloadEx()
    • getExecStart

      public List<ExecutionInfo> getExecStart()
    • getExecStartEx

      public List<ExtendedExecutionInfo> getExecStartEx()
    • getExecStartPost

      public List<ExecutionInfo> getExecStartPost()
    • getExecStartPostEx

      public List<ExtendedExecutionInfo> getExecStartPostEx()
    • getExecStartPre

      public List<ExecutionInfo> getExecStartPre()
    • getExecStartPreEx

      public List<ExtendedExecutionInfo> getExecStartPreEx()
    • getExecStop

      public List<ExecutionInfo> getExecStop()
    • getExecStopEx

      public List<ExtendedExecutionInfo> getExecStopEx()
    • getExecStopPost

      public List<ExecutionInfo> getExecStopPost()
    • getExecStopPostEx

      public List<ExtendedExecutionInfo> getExecStopPostEx()
    • getFileDescriptorStoreMax

      public long getFileDescriptorStoreMax()
    • getFinalKillSignal

      public int getFinalKillSignal()
    • isGuessMainPID

      public boolean isGuessMainPID()
    • getIOSchedulingClass

      public int getIOSchedulingClass()
    • getIOSchedulingPriority

      public int getIOSchedulingPriority()
    • isIgnoreSIGPIPE

      public boolean isIgnoreSIGPIPE()
    • getInaccessiblePaths

      public List<String> getInaccessiblePaths()
    • getKillMode

      public String getKillMode()
    • getKillSignal

      public int getKillSignal()
    • getMainPID

      public int getMainPID()
    • getMountFlags

      public BigInteger getMountFlags()
    • getNFileDescriptorStore

      public long getNFileDescriptorStore()
    • getNice

      public int getNice()
    • isNoNewPrivileges

      public boolean isNoNewPrivileges()
    • isNonBlocking

      public boolean isNonBlocking()
    • getNotifyAccess

      public String getNotifyAccess()
    • getNRestarts

      public long getNRestarts()
    • getOOMPolicy

      public String getOOMPolicy()
    • getOOMScoreAdjust

      public int getOOMScoreAdjust()
    • getPAMName

      public String getPAMName()
    • getPIDFile

      public String getPIDFile()
    • getReadOnlyPaths

      public List<String> getReadOnlyPaths()
    • getReadWritePaths

      public List<String> getReadWritePaths()
    • getReloadResult

      public String getReloadResult()
    • isRemainAfterExit

      public boolean isRemainAfterExit()
    • getRestart

      public String getRestart()
    • getRestartForceExitStatus

      public ExitStatusType getRestartForceExitStatus()
    • getRestartKillSignal

      public int getRestartKillSignal()
    • getRestartPreventExitStatus

      public ExitStatusType getRestartPreventExitStatus()
    • getRestartUSec

      public BigInteger getRestartUSec()
    • getResult

      public String getResult()
    • getRootDirectory

      public String getRootDirectory()
    • isRootDirectoryStartOnly

      public boolean isRootDirectoryStartOnly()
    • getRuntimeMaxUSec

      public BigInteger getRuntimeMaxUSec()
    • isSameProcessGroup

      public boolean isSameProcessGroup()
    • getSecureBits

      public int getSecureBits()
    • isSendSIGHUP

      public boolean isSendSIGHUP()
    • isSendSIGKILL

      public boolean isSendSIGKILL()
    • getSlice

      public String getSlice()
    • getStatusText

      public String getStatusText()
    • getStatusErrno

      public int getStatusErrno()
    • getStatusBusError

      public String getStatusBusError()
    • getStatusVarlinkError

      public String getStatusVarlinkError()
    • getSuccessExitStatus

      public ExitStatusType getSuccessExitStatus()
    • getSupplementaryGroups

      public List<String> getSupplementaryGroups()
    • getSyslogIdentifier

      public String getSyslogIdentifier()
    • isSyslogLevelPrefix

      public boolean isSyslogLevelPrefix()
    • getSyslogPriority

      public int getSyslogPriority()
    • getSystemCallFilter

      public SystemCallFilter getSystemCallFilter()
    • getTTYPath

      public String getTTYPath()
    • isTTYReset

      public boolean isTTYReset()
    • isTTYVHangup

      public boolean isTTYVHangup()
    • isTTYVTDisallocate

      public boolean isTTYVTDisallocate()
    • getTimeoutAbortUSec

      public BigInteger getTimeoutAbortUSec()
    • getTimeoutStartFailureMode

      public String getTimeoutStartFailureMode()
    • getTimeoutStartUSec

      public BigInteger getTimeoutStartUSec()
    • getTimeoutStopFailureMode

      public String getTimeoutStopFailureMode()
    • getTimeoutStopUSec

      public BigInteger getTimeoutStopUSec()
    • getTimerSlackNSec

      public BigInteger getTimerSlackNSec()
    • getType

      public String getType()
    • getUMask

      public long getUMask()
    • getUSBFunctionDescriptors

      public String getUSBFunctionDescriptors()
    • getUSBFunctionStrings

      public String getUSBFunctionStrings()
    • getWatchdogSignal

      public int getWatchdogSignal()
    • getWatchdogTimestamp

      public long getWatchdogTimestamp()
    • getWatchdogTimestampMonotonic

      public long getWatchdogTimestampMonotonic()
    • getWatchdogUSec

      public BigInteger getWatchdogUSec()
    • getWorkingDirectory

      public String getWorkingDirectory()