java.lang.Object
de.thjom.java.systemd.AbstractAdapter
de.thjom.java.systemd.InterfaceAdapter
de.thjom.java.systemd.Unit
de.thjom.java.systemd.Socket
- All Implemented Interfaces:
CpuAccounting,DynamicUserAccounting,ExtendedCpuAccounting,ExtendedMemoryAccounting,Feature,IoAccounting,IpAccounting,MemoryAccounting,ResourceControl,TasksAccounting,Ulimit,UnitStateNotifier,org.freedesktop.dbus.interfaces.DBusInterface
public class Socket
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
ConstructorsModifierConstructorDescriptionprivateSocket(Manager manager, SocketInterface iface, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachProcesses(String cgroupPath, long[] pids) (package private) static SocketlonglonglongintintintintgetIPTOS()intgetIPTTL()longintintgetMark()longlonglonglonglonglongintgetNice()longintintintbooleanintgetSlice()longintintlonglonggetUMask()intbooleanisAccept()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanMethods 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
-
Socket
private Socket(Manager manager, SocketInterface iface, String name) throws org.freedesktop.dbus.exceptions.DBusException - Throws:
org.freedesktop.dbus.exceptions.DBusException
-
-
Method Details
-
create
static Socket create(Manager manager, String name) throws org.freedesktop.dbus.exceptions.DBusException - Throws:
org.freedesktop.dbus.exceptions.DBusException
-
getInterface
- Overrides:
getInterfacein classUnit
-
attachProcesses
-
getProcesses
-
isAccept
public boolean isAccept() -
getBacklog
public long getBacklog() -
getBindIPv6Only
-
getBindToDevice
-
isBroadcast
public boolean isBroadcast() -
getCapabilityBoundingSet
-
getControlPID
public long getControlPID() -
getDeferAcceptUSec
-
getDeviceAllow
-
getDevicePolicy
-
getDirectoryMode
public long getDirectoryMode() -
getEnvironment
-
getEnvironmentFiles
-
getExecStartPost
-
getExecStartPre
-
getExecStopPost
-
getExecStopPre
-
getFileDescriptorName
-
getFinalKillSignal
public int getFinalKillSignal() -
isFlushPending
public boolean isFlushPending() -
isFreeBind
public boolean isFreeBind() -
getIOSchedulingClass
public int getIOSchedulingClass() -
getIOSchedulingPriority
public int getIOSchedulingPriority() -
getIPTOS
public int getIPTOS() -
getIPTTL
public int getIPTTL() -
isIgnoreSIGPIPE
public boolean isIgnoreSIGPIPE() -
getInaccessiblePaths
-
isKeepAlive
public boolean isKeepAlive() -
getKeepAliveIntervalUSec
-
getKeepAliveProbes
public long getKeepAliveProbes() -
getKeepAliveTimeUSec
-
getKillMode
-
getKillSignal
public int getKillSignal() -
getListen
-
getMark
public int getMark() -
getMaxConnections
public long getMaxConnections() -
getMaxConnectionsPerSource
public long getMaxConnectionsPerSource() -
getMessageQueueMaxMessages
public long getMessageQueueMaxMessages() -
getMessageQueueMessageSize
public long getMessageQueueMessageSize() -
getMountFlags
-
getNAccepted
public long getNAccepted() -
getNConnections
public long getNConnections() -
getNice
public int getNice() -
isNoDelay
public boolean isNoDelay() -
isNoNewPrivileges
public boolean isNoNewPrivileges() -
isNonBlocking
public boolean isNonBlocking() -
getNRefused
public long getNRefused() -
getOOMScoreAdjust
public int getOOMScoreAdjust() -
getPAMName
-
isPassCredentials
public boolean isPassCredentials() -
isPassPacketInfo
public boolean isPassPacketInfo() -
isPassSecurity
public boolean isPassSecurity() -
getPipeSize
-
getPriority
public int getPriority() -
getReadOnlyPaths
-
getReadWritePaths
-
getReceiveBuffer
-
isRemoveOnStop
public boolean isRemoveOnStop() -
getRestartKillSignal
public int getRestartKillSignal() -
getResult
-
getReusePort
public boolean getReusePort() -
getRootDirectory
-
isSameProcessGroup
public boolean isSameProcessGroup() -
getSecureBits
public int getSecureBits() -
getSendBuffer
-
isSendSIGHUP
public boolean isSendSIGHUP() -
isSendSIGKILL
public boolean isSendSIGKILL() -
getSlice
-
getSmackLabel
-
getSmackLabelIPIn
-
getSmackLabelIPOut
-
getSocketGroup
-
getSocketMode
public long getSocketMode() -
getSocketProtocol
public int getSocketProtocol() -
getSocketUser
-
getSupplementaryGroups
-
getSymlinks
-
getSyslogIdentifier
-
isSyslogLevelPrefix
public boolean isSyslogLevelPrefix() -
getSyslogPriority
public int getSyslogPriority() -
getSystemCallFilter
-
getTCPCongestion
-
getTriggerLimitBurst
public long getTriggerLimitBurst() -
getTriggerLimitIntervalUSec
-
getTTYPath
-
isTTYReset
public boolean isTTYReset() -
isTTYVHangup
public boolean isTTYVHangup() -
isTTYVTDisallocate
public boolean isTTYVTDisallocate() -
getTimeoutUSec
-
getTimerSlackNSec
-
getTimestamping
-
isTransparent
public boolean isTransparent() -
getUMask
public long getUMask() -
getWatchdogSignal
public int getWatchdogSignal() -
getWorkingDirectory
-
isWritable
public boolean isWritable()
-