java.lang.Object
de.thjom.java.systemd.AbstractAdapter
de.thjom.java.systemd.InterfaceAdapter
de.thjom.java.systemd.Unit
de.thjom.java.systemd.Swap
- All Implemented Interfaces:
CpuAccounting,DynamicUserAccounting,ExtendedCpuAccounting,ExtendedMemoryAccounting,Feature,IoAccounting,IpAccounting,MemoryAccounting,ResourceControl,TasksAccounting,Ulimit,UnitStateNotifier,org.freedesktop.dbus.interfaces.DBusInterface
public class Swap
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachProcesses(String cgroupPath, long[] pids) (package private) static SwaplongintintintintintgetNice()intintintintgetSlice()intlonglonggetUMask()intgetWhat()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanMethods 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
-
Swap
private Swap(Manager manager, SwapInterface iface, String name) throws org.freedesktop.dbus.exceptions.DBusException - Throws:
org.freedesktop.dbus.exceptions.DBusException
-
-
Method Details
-
create
static Swap create(Manager manager, String name) throws org.freedesktop.dbus.exceptions.DBusException - Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getInterface
- Overrides:
getInterfacein classUnit
-
attachProcesses
-
getProcesses
-
getCapabilityBoundingSet
-
getControlPID
public long getControlPID() -
getDeviceAllow
-
getDevicePolicy
-
getEnvironment
-
getEnvironmentFiles
-
getExecActivate
-
getExecDeactivate
-
getFinalKillSignal
public int getFinalKillSignal() -
isIgnoreSIGPIPE
public boolean isIgnoreSIGPIPE() -
getInaccessiblePaths
-
getIOSchedulingClass
public int getIOSchedulingClass() -
getIOSchedulingPriority
public int getIOSchedulingPriority() -
getKillMode
-
getKillSignal
public int getKillSignal() -
getMountFlags
-
getNice
public int getNice() -
isNoNewPrivileges
public boolean isNoNewPrivileges() -
isNonBlocking
public boolean isNonBlocking() -
getOOMScoreAdjust
public int getOOMScoreAdjust() -
getOptions
-
getPAMName
-
getPriority
public int getPriority() -
getReadOnlyPaths
-
getReadWritePaths
-
getRestartKillSignal
public int getRestartKillSignal() -
getResult
-
getRootDirectory
-
isSameProcessGroup
public boolean isSameProcessGroup() -
getSecureBits
public int getSecureBits() -
isSendSIGHUP
public boolean isSendSIGHUP() -
isSendSIGKILL
public boolean isSendSIGKILL() -
getSlice
-
getSupplementaryGroups
-
getSyslogIdentifier
-
isSyslogLevelPrefix
public boolean isSyslogLevelPrefix() -
getSyslogPriority
public int getSyslogPriority() -
getSystemCallFilter
-
getTTYPath
-
isTTYReset
public boolean isTTYReset() -
isTTYVHangup
public boolean isTTYVHangup() -
isTTYVTDisallocate
public boolean isTTYVTDisallocate() -
getTimeoutUSec
-
getTimerSlackNSec
public long getTimerSlackNSec() -
getUMask
public long getUMask() -
getWatchdogSignal
public int getWatchdogSignal() -
getWhat
-
getWorkingDirectory
-