java.lang.Object
de.thjom.java.systemd.AbstractAdapter
de.thjom.java.systemd.InterfaceAdapter
de.thjom.java.systemd.Unit
de.thjom.java.systemd.Service
- All Implemented Interfaces:
CpuAccounting,DynamicUserAccounting,ExtendedCpuAccounting,ExtendedMemoryAccounting,Feature,IoAccounting,IpAccounting,MemoryAccounting,ResourceControl,TasksAccounting,Ulimit,UnitStateNotifier,org.freedesktop.dbus.interfaces.DBusInterface
public class Service
extends Unit
implements ExtendedCpuAccounting, DynamicUserAccounting, IoAccounting, IpAccounting, ExtendedMemoryAccounting, ResourceControl, TasksAccounting, Ulimit
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.thjom.java.systemd.Unit
Unit.Mode, Unit.StateTuple, Unit.WhoNested classes/interfaces inherited from class de.thjom.java.systemd.InterfaceAdapter
InterfaceAdapter.AdapterProperty -
Field Summary
FieldsFields inherited from class de.thjom.java.systemd.Unit
manager, name, OBJECT_PATHFields inherited from class de.thjom.java.systemd.InterfaceAdapter
dbus, propertiesFields inherited from class de.thjom.java.systemd.AbstractAdapter
unitStateListeners -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateService(Manager manager, ServiceInterface iface, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachProcesses(String cgroupPath, long[] pids) (package private) static ServicelongintlonglonglonglonglongintlongintintintintintlongintgetNice()longintintintgetSlice()intintgetType()longgetUMask()intlonglongbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanMethods inherited from class de.thjom.java.systemd.Unit
addHandler, clean, createStateHandler, equals, extractName, freeze, getActiveEnterTimestamp, getActiveEnterTimestampMonotonic, getActiveExitTimestamp, getActiveExitTimestampMonotonic, getActiveState, getAfter, getAsserts, getAssertTimestamp, getAssertTimestampMonotonic, getBefore, getBindsTo, getBoundBy, getCollectMode, getConditionResult, getConditions, getConditionTimestamp, getConditionTimestampMonotonic, getConflictedBy, getConflicts, getConsistsOf, getDescription, getDocumentation, getDropInPaths, getFailureAction, getFailureActionExitStatus, getFollowing, getFragmentPath, getFreezerState, getId, getInactiveEnterTimestamp, getInactiveEnterTimestampMonotonic, getInactiveExitTimestamp, getInactiveExitTimestampMonotonic, getInvocationID, getJob, getJobRunningTimeoutUSec, getJobTimeoutAction, getJobTimeoutRebootArgument, getJobTimeoutUSec, getJoinsNamespaceOf, getLoadError, getLoadState, getNames, getOnFailure, getOnFailureJobMode, getPartOf, getPropagatesReloadTo, getRebootArgument, getRefs, getReloadPropagatedFrom, getRequiredBy, getRequires, getRequiresMountsFor, getRequisite, getRequisiteOf, getSourcePath, getStartLimitAction, getStartLimitBurst, getStartLimitIntervalUSec, getStateChangeTimestamp, getStateChangeTimestampMonotonic, getSubState, getSuccessAction, getSuccessActionExitStatus, getTriggeredBy, getTriggers, getUnitFilePreset, getUnitFileState, getUnitProperties, getUpheldBy, getUpholds, getWantedBy, getWants, hashCode, introspect, isAllowIsolate, isAssertResult, isAssignableFrom, isCanClean, isCanFreeze, isCanIsolate, isCanReload, isCanStart, isCanStop, isDefaultDependencies, isIgnoreOnIsolate, isNeedDaemonReload, isPerpetual, isRefuseManualStart, isRefuseManualStop, isStopWhenUnneeded, isTransient, kill, kill, normalizeName, ref, reload, reload, reloadOrRestart, reloadOrRestart, reloadOrTryRestart, reloadOrTryRestart, removeHandler, resetFailed, restart, restart, setProperties, start, start, stop, stop, thaw, toString, tryRestart, tryRestart, unrefMethods inherited from class de.thjom.java.systemd.InterfaceAdapter
getObjectPath, getProperties, isRemoteMethods inherited from class de.thjom.java.systemd.AbstractAdapter
addListener, removeListenerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.thjom.java.systemd.features.CpuAccounting
getAllowedCPUs, getCPUQuotaPeriodUSec, getCPUQuotaPerSecUSec, getCPUShares, getCPUUsageNSec, getCPUWeight, getEffectiveCPUs, getStartupCPUShares, getStartupCPUWeight, isCPUAccountingMethods inherited from interface de.thjom.java.systemd.features.DynamicUserAccounting
getAmbientCapabilities, getAppArmorProfile, getBindPaths, getBindReadOnlyPaths, getCacheDirectory, getCacheDirectoryMode, getConfigurationDirectory, getConfigurationDirectoryMode, getControlGroup, getCoredumpFilter, getGID, getGroup, getKeyringMode, getLoadCredential, getLogExtraFields, getLogLevelMax, getLogNamespace, getLogRateLimitBurst, getLogRateLimitIntervalUSec, getLogsDirectory, getLogsDirectoryMode, getMountImages, getNetworkNamespacePath, getPassEnvironment, getPersonality, getProcSubset, getProtectHome, getProtectProc, getProtectSystem, getRestrictAddressFamilies, getRestrictNamespaces, getRootHash, getRootHashPath, getRootHashSignature, getRootHashSignaturePath, getRootImage, getRootImageOptions, getRootVerity, getRuntimeDirectory, getRuntimeDirectoryMode, getRuntimeDirectoryPreserve, getSELinuxContext, getSetCredential, getSmackProcessLabel, getStandardError, getStandardErrorFileDescriptorName, getStandardInput, getStandardInputData, getStandardInputFileDescriptorName, getStandardOutput, getStandardOutputFileDescriptorName, getStateDirectory, getStateDirectoryMode, getSyslogFacility, getSyslogLevel, getSystemCallArchitectures, getSystemCallErrorNumber, getSystemCallLog, getTemporaryFileSystem, getTimeoutCleanUSec, getUID, getUnsetEnvironment, getUser, getUtmpIdentifier, getUtmpMode, isDynamicUser, isLockPersonality, isMountAPIVFS, isPrivateDevices, isPrivateMounts, isPrivateNetwork, isPrivateTmp, isPrivateUsers, isProtectClock, isProtectControlGroups, isProtectHostname, isProtectKernelLogs, isProtectKernelModules, isProtectKernelTunables, isRemoveIPC, isRestrictRealtime, isRestrictSUIDSGIDMethods inherited from interface de.thjom.java.systemd.features.ExtendedCpuAccounting
getCPUAffinity, getCPUAffinityFromNUMA, getCPUSchedulingPolicy, getCPUSchedulingPriority, getNUMAMask, getNUMAPolicy, isCPUSchedulingResetOnForkMethods inherited from interface de.thjom.java.systemd.features.ExtendedMemoryAccounting
isMemoryDenyWriteExecuteMethods inherited from interface de.thjom.java.systemd.features.Feature
getPropertiesMethods inherited from interface de.thjom.java.systemd.features.IoAccounting
getBlockIODeviceWeight, getBlockIOReadBandwidth, getBlockIOWeight, getBlockIOWriteBandwidth, getIODeviceLatencyTargetUSec, getIODeviceWeight, getIOReadBandwidthMax, getIOReadBytes, getIOReadIOPSMax, getIOReadOperations, getIOWeight, getIOWriteBandwidthMax, getIOWriteBytes, getIOWriteIOPSMax, getIOWriteOperations, getIPEgressFilterPath, getIPIngressFilterPath, getStartupBlockIOWeight, getStartupIOWeight, isBlockIOAccounting, isIOAccountingMethods inherited from interface de.thjom.java.systemd.features.IpAccounting
getIPAddressAllow, getIPAddressDeny, getIPEgressBytes, getIPEgressPackets, getIPIngressBytes, getIPIngressPackets, isIPAccountingMethods inherited from interface de.thjom.java.systemd.features.MemoryAccounting
getAllowedMemoryNodes, getDefaultMemoryLow, getDefaultMemoryMin, getEffectiveMemoryNodes, getManagedOOMMemoryPressure, getManagedOOMMemoryPressureLimitPercent, getManagedOOMSwap, getMemoryCurrent, getMemoryHigh, getMemoryLimit, getMemoryLow, getMemoryMax, getMemoryMin, getMemorySwapMax, isMemoryAccountingMethods inherited from interface de.thjom.java.systemd.features.ResourceControl
getDelegateControllers, getDisableControllers, isDelegateMethods inherited from interface de.thjom.java.systemd.features.TasksAccounting
getTasksCurrent, getTasksMax, isTasksAccountingMethods inherited from interface de.thjom.java.systemd.features.Ulimit
getLimitAS, getLimitASSoft, getLimitCORE, getLimitCORESoft, getLimitCPU, getLimitCPUSoft, getLimitDATA, getLimitDATASoft, getLimitFSIZE, getLimitFSIZESoft, getLimitLOCKS, getLimitLOCKSSoft, getLimitMEMLOCK, getLimitMEMLOCKSoft, getLimitMSGQUEUE, getLimitMSGQUEUESoft, getLimitNICE, getLimitNICESoft, getLimitNOFILE, getLimitNOFILESoft, getLimitNPROC, getLimitNPROCSoft, getLimitRSS, getLimitRSSSoft, getLimitRTPRIO, getLimitRTPRIOSoft, getLimitRTTIME, getLimitRTTIMESoft, getLimitSIGPENDING, getLimitSIGPENDINGSoft, getLimitSTACK, getLimitSTACKSoftMethods inherited from interface de.thjom.java.systemd.UnitStateNotifier
addListener, removeListener
-
Field Details
-
SERVICE_NAME
- See Also:
-
UNIT_SUFFIX
- See Also:
-
-
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
- Overrides:
getInterfacein classUnit
-
attachProcesses
-
getProcesses
-
getBusName
-
getCapabilityBoundingSet
-
getCleanResult
-
getControlPID
public long getControlPID() -
getDeviceAllow
-
getDevicePolicy
-
getEnvironment
-
getEnvironmentFiles
-
getExecCondition
-
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
-
getExecReloadEx
-
getExecStart
-
getExecStartEx
-
getExecStartPost
-
getExecStartPostEx
-
getExecStartPre
-
getExecStartPreEx
-
getExecStop
-
getExecStopEx
-
getExecStopPost
-
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
-
getKillMode
-
getKillSignal
public int getKillSignal() -
getMainPID
public int getMainPID() -
getMountFlags
-
getNFileDescriptorStore
public long getNFileDescriptorStore() -
getNice
public int getNice() -
isNoNewPrivileges
public boolean isNoNewPrivileges() -
isNonBlocking
public boolean isNonBlocking() -
getNotifyAccess
-
getNRestarts
public long getNRestarts() -
getOOMPolicy
-
getOOMScoreAdjust
public int getOOMScoreAdjust() -
getPAMName
-
getPIDFile
-
getReadOnlyPaths
-
getReadWritePaths
-
getReloadResult
-
isRemainAfterExit
public boolean isRemainAfterExit() -
getRestart
-
getRestartForceExitStatus
-
getRestartKillSignal
public int getRestartKillSignal() -
getRestartPreventExitStatus
-
getRestartUSec
-
getResult
-
getRootDirectory
-
isRootDirectoryStartOnly
public boolean isRootDirectoryStartOnly() -
getRuntimeMaxUSec
-
isSameProcessGroup
public boolean isSameProcessGroup() -
getSecureBits
public int getSecureBits() -
isSendSIGHUP
public boolean isSendSIGHUP() -
isSendSIGKILL
public boolean isSendSIGKILL() -
getSlice
-
getStatusText
-
getStatusErrno
public int getStatusErrno() -
getStatusBusError
-
getStatusVarlinkError
-
getSuccessExitStatus
-
getSupplementaryGroups
-
getSyslogIdentifier
-
isSyslogLevelPrefix
public boolean isSyslogLevelPrefix() -
getSyslogPriority
public int getSyslogPriority() -
getSystemCallFilter
-
getTTYPath
-
isTTYReset
public boolean isTTYReset() -
isTTYVHangup
public boolean isTTYVHangup() -
isTTYVTDisallocate
public boolean isTTYVTDisallocate() -
getTimeoutAbortUSec
-
getTimeoutStartFailureMode
-
getTimeoutStartUSec
-
getTimeoutStopFailureMode
-
getTimeoutStopUSec
-
getTimerSlackNSec
-
getType
-
getUMask
public long getUMask() -
getUSBFunctionDescriptors
-
getUSBFunctionStrings
-
getWatchdogSignal
public int getWatchdogSignal() -
getWatchdogTimestamp
public long getWatchdogTimestamp() -
getWatchdogTimestampMonotonic
public long getWatchdogTimestampMonotonic() -
getWatchdogUSec
-
getWorkingDirectory
-