java.lang.Object
de.thjom.java.systemd.AbstractAdapter
de.thjom.java.systemd.InterfaceAdapter
de.thjom.java.systemd.Unit
de.thjom.java.systemd.Scope
- All Implemented Interfaces:
CpuAccounting,Feature,IoAccounting,IpAccounting,MemoryAccounting,ResourceControl,TasksAccounting,UnitStateNotifier,org.freedesktop.dbus.interfaces.DBusInterface
public class Scope
extends Unit
implements CpuAccounting, IoAccounting, IpAccounting, MemoryAccounting, ResourceControl, TasksAccounting
-
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 TypeMethodDescriptionvoidabandon()voidattachProcesses(String cgroupPath, long[] pids) (package private) static ScopeintintintgetSlice()intbooleanbooleanMethods 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.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.UnitStateNotifier
addListener, removeListener
-
Field Details
-
SERVICE_NAME
- See Also:
-
UNIT_SUFFIX
- See Also:
-
-
Constructor Details
-
Scope
private Scope(Manager manager, ScopeInterface iface, String name) throws org.freedesktop.dbus.exceptions.DBusException - Throws:
org.freedesktop.dbus.exceptions.DBusException
-
-
Method Details
-
create
static Scope create(Manager manager, String name) throws org.freedesktop.dbus.exceptions.DBusException - Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getInterface
- Overrides:
getInterfacein classUnit
-
abandon
public void abandon() -
attachProcesses
-
getProcesses
-
getControlGroup
-
getController
-
getDeviceAllow
-
getDevicePolicy
-
getFinalKillSignal
public int getFinalKillSignal() -
getKillMode
-
getKillSignal
public int getKillSignal() -
getRestartKillSignal
public int getRestartKillSignal() -
getResult
-
getRuntimeMaxUSec
-
isSendSIGHUP
public boolean isSendSIGHUP() -
isSendSIGKILL
public boolean isSendSIGKILL() -
getSlice
-
getTimeoutStopUSec
-
getWatchdogSignal
public int getWatchdogSignal()
-