Class SysctlConfig
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.models.SysctlConfig
-
public final class SysctlConfig extends Object
Sysctl settings for Linux agent nodes.
-
-
Constructor Summary
Constructors Constructor Description SysctlConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerfsAioMaxNr()Get the fsAioMaxNr property: Sysctl setting fs.aio-max-nr.IntegerfsFileMax()Get the fsFileMax property: Sysctl setting fs.file-max.IntegerfsInotifyMaxUserWatches()Get the fsInotifyMaxUserWatches property: Sysctl setting fs.inotify.max_user_watches.IntegerfsNrOpen()Get the fsNrOpen property: Sysctl setting fs.nr_open.IntegerkernelThreadsMax()Get the kernelThreadsMax property: Sysctl setting kernel.threads-max.IntegernetCoreNetdevMaxBacklog()Get the netCoreNetdevMaxBacklog property: Sysctl setting net.core.netdev_max_backlog.IntegernetCoreOptmemMax()Get the netCoreOptmemMax property: Sysctl setting net.core.optmem_max.IntegernetCoreRmemDefault()Get the netCoreRmemDefault property: Sysctl setting net.core.rmem_default.IntegernetCoreRmemMax()Get the netCoreRmemMax property: Sysctl setting net.core.rmem_max.IntegernetCoreSomaxconn()Get the netCoreSomaxconn property: Sysctl setting net.core.somaxconn.IntegernetCoreWmemDefault()Get the netCoreWmemDefault property: Sysctl setting net.core.wmem_default.IntegernetCoreWmemMax()Get the netCoreWmemMax property: Sysctl setting net.core.wmem_max.StringnetIpv4IpLocalPortRange()Get the netIpv4IpLocalPortRange property: Sysctl setting net.ipv4.ip_local_port_range.IntegernetIpv4NeighDefaultGcThresh1()Get the netIpv4NeighDefaultGcThresh1 property: Sysctl setting net.ipv4.neigh.default.gc_thresh1.IntegernetIpv4NeighDefaultGcThresh2()Get the netIpv4NeighDefaultGcThresh2 property: Sysctl setting net.ipv4.neigh.default.gc_thresh2.IntegernetIpv4NeighDefaultGcThresh3()Get the netIpv4NeighDefaultGcThresh3 property: Sysctl setting net.ipv4.neigh.default.gc_thresh3.IntegernetIpv4TcpFinTimeout()Get the netIpv4TcpFinTimeout property: Sysctl setting net.ipv4.tcp_fin_timeout.IntegernetIpv4TcpkeepaliveIntvl()Get the netIpv4TcpkeepaliveIntvl property: Sysctl setting net.ipv4.tcp_keepalive_intvl.IntegernetIpv4TcpKeepaliveProbes()Get the netIpv4TcpKeepaliveProbes property: Sysctl setting net.ipv4.tcp_keepalive_probes.IntegernetIpv4TcpKeepaliveTime()Get the netIpv4TcpKeepaliveTime property: Sysctl setting net.ipv4.tcp_keepalive_time.IntegernetIpv4TcpMaxSynBacklog()Get the netIpv4TcpMaxSynBacklog property: Sysctl setting net.ipv4.tcp_max_syn_backlog.IntegernetIpv4TcpMaxTwBuckets()Get the netIpv4TcpMaxTwBuckets property: Sysctl setting net.ipv4.tcp_max_tw_buckets.BooleannetIpv4TcpTwReuse()Get the netIpv4TcpTwReuse property: Sysctl setting net.ipv4.tcp_tw_reuse.IntegernetNetfilterNfConntrackBuckets()Get the netNetfilterNfConntrackBuckets property: Sysctl setting net.netfilter.nf_conntrack_buckets.IntegernetNetfilterNfConntrackMax()Get the netNetfilterNfConntrackMax property: Sysctl setting net.netfilter.nf_conntrack_max.voidvalidate()Validates the instance.IntegervmMaxMapCount()Get the vmMaxMapCount property: Sysctl setting vm.max_map_count.IntegervmSwappiness()Get the vmSwappiness property: Sysctl setting vm.swappiness.IntegervmVfsCachePressure()Get the vmVfsCachePressure property: Sysctl setting vm.vfs_cache_pressure.SysctlConfigwithFsAioMaxNr(Integer fsAioMaxNr)Set the fsAioMaxNr property: Sysctl setting fs.aio-max-nr.SysctlConfigwithFsFileMax(Integer fsFileMax)Set the fsFileMax property: Sysctl setting fs.file-max.SysctlConfigwithFsInotifyMaxUserWatches(Integer fsInotifyMaxUserWatches)Set the fsInotifyMaxUserWatches property: Sysctl setting fs.inotify.max_user_watches.SysctlConfigwithFsNrOpen(Integer fsNrOpen)Set the fsNrOpen property: Sysctl setting fs.nr_open.SysctlConfigwithKernelThreadsMax(Integer kernelThreadsMax)Set the kernelThreadsMax property: Sysctl setting kernel.threads-max.SysctlConfigwithNetCoreNetdevMaxBacklog(Integer netCoreNetdevMaxBacklog)Set the netCoreNetdevMaxBacklog property: Sysctl setting net.core.netdev_max_backlog.SysctlConfigwithNetCoreOptmemMax(Integer netCoreOptmemMax)Set the netCoreOptmemMax property: Sysctl setting net.core.optmem_max.SysctlConfigwithNetCoreRmemDefault(Integer netCoreRmemDefault)Set the netCoreRmemDefault property: Sysctl setting net.core.rmem_default.SysctlConfigwithNetCoreRmemMax(Integer netCoreRmemMax)Set the netCoreRmemMax property: Sysctl setting net.core.rmem_max.SysctlConfigwithNetCoreSomaxconn(Integer netCoreSomaxconn)Set the netCoreSomaxconn property: Sysctl setting net.core.somaxconn.SysctlConfigwithNetCoreWmemDefault(Integer netCoreWmemDefault)Set the netCoreWmemDefault property: Sysctl setting net.core.wmem_default.SysctlConfigwithNetCoreWmemMax(Integer netCoreWmemMax)Set the netCoreWmemMax property: Sysctl setting net.core.wmem_max.SysctlConfigwithNetIpv4IpLocalPortRange(String netIpv4IpLocalPortRange)Set the netIpv4IpLocalPortRange property: Sysctl setting net.ipv4.ip_local_port_range.SysctlConfigwithNetIpv4NeighDefaultGcThresh1(Integer netIpv4NeighDefaultGcThresh1)Set the netIpv4NeighDefaultGcThresh1 property: Sysctl setting net.ipv4.neigh.default.gc_thresh1.SysctlConfigwithNetIpv4NeighDefaultGcThresh2(Integer netIpv4NeighDefaultGcThresh2)Set the netIpv4NeighDefaultGcThresh2 property: Sysctl setting net.ipv4.neigh.default.gc_thresh2.SysctlConfigwithNetIpv4NeighDefaultGcThresh3(Integer netIpv4NeighDefaultGcThresh3)Set the netIpv4NeighDefaultGcThresh3 property: Sysctl setting net.ipv4.neigh.default.gc_thresh3.SysctlConfigwithNetIpv4TcpFinTimeout(Integer netIpv4TcpFinTimeout)Set the netIpv4TcpFinTimeout property: Sysctl setting net.ipv4.tcp_fin_timeout.SysctlConfigwithNetIpv4TcpkeepaliveIntvl(Integer netIpv4TcpkeepaliveIntvl)Set the netIpv4TcpkeepaliveIntvl property: Sysctl setting net.ipv4.tcp_keepalive_intvl.SysctlConfigwithNetIpv4TcpKeepaliveProbes(Integer netIpv4TcpKeepaliveProbes)Set the netIpv4TcpKeepaliveProbes property: Sysctl setting net.ipv4.tcp_keepalive_probes.SysctlConfigwithNetIpv4TcpKeepaliveTime(Integer netIpv4TcpKeepaliveTime)Set the netIpv4TcpKeepaliveTime property: Sysctl setting net.ipv4.tcp_keepalive_time.SysctlConfigwithNetIpv4TcpMaxSynBacklog(Integer netIpv4TcpMaxSynBacklog)Set the netIpv4TcpMaxSynBacklog property: Sysctl setting net.ipv4.tcp_max_syn_backlog.SysctlConfigwithNetIpv4TcpMaxTwBuckets(Integer netIpv4TcpMaxTwBuckets)Set the netIpv4TcpMaxTwBuckets property: Sysctl setting net.ipv4.tcp_max_tw_buckets.SysctlConfigwithNetIpv4TcpTwReuse(Boolean netIpv4TcpTwReuse)Set the netIpv4TcpTwReuse property: Sysctl setting net.ipv4.tcp_tw_reuse.SysctlConfigwithNetNetfilterNfConntrackBuckets(Integer netNetfilterNfConntrackBuckets)Set the netNetfilterNfConntrackBuckets property: Sysctl setting net.netfilter.nf_conntrack_buckets.SysctlConfigwithNetNetfilterNfConntrackMax(Integer netNetfilterNfConntrackMax)Set the netNetfilterNfConntrackMax property: Sysctl setting net.netfilter.nf_conntrack_max.SysctlConfigwithVmMaxMapCount(Integer vmMaxMapCount)Set the vmMaxMapCount property: Sysctl setting vm.max_map_count.SysctlConfigwithVmSwappiness(Integer vmSwappiness)Set the vmSwappiness property: Sysctl setting vm.swappiness.SysctlConfigwithVmVfsCachePressure(Integer vmVfsCachePressure)Set the vmVfsCachePressure property: Sysctl setting vm.vfs_cache_pressure.
-
-
-
Method Detail
-
netCoreSomaxconn
public Integer netCoreSomaxconn()
Get the netCoreSomaxconn property: Sysctl setting net.core.somaxconn.- Returns:
- the netCoreSomaxconn value.
-
withNetCoreSomaxconn
public SysctlConfig withNetCoreSomaxconn(Integer netCoreSomaxconn)
Set the netCoreSomaxconn property: Sysctl setting net.core.somaxconn.- Parameters:
netCoreSomaxconn- the netCoreSomaxconn value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreNetdevMaxBacklog
public Integer netCoreNetdevMaxBacklog()
Get the netCoreNetdevMaxBacklog property: Sysctl setting net.core.netdev_max_backlog.- Returns:
- the netCoreNetdevMaxBacklog value.
-
withNetCoreNetdevMaxBacklog
public SysctlConfig withNetCoreNetdevMaxBacklog(Integer netCoreNetdevMaxBacklog)
Set the netCoreNetdevMaxBacklog property: Sysctl setting net.core.netdev_max_backlog.- Parameters:
netCoreNetdevMaxBacklog- the netCoreNetdevMaxBacklog value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreRmemDefault
public Integer netCoreRmemDefault()
Get the netCoreRmemDefault property: Sysctl setting net.core.rmem_default.- Returns:
- the netCoreRmemDefault value.
-
withNetCoreRmemDefault
public SysctlConfig withNetCoreRmemDefault(Integer netCoreRmemDefault)
Set the netCoreRmemDefault property: Sysctl setting net.core.rmem_default.- Parameters:
netCoreRmemDefault- the netCoreRmemDefault value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreRmemMax
public Integer netCoreRmemMax()
Get the netCoreRmemMax property: Sysctl setting net.core.rmem_max.- Returns:
- the netCoreRmemMax value.
-
withNetCoreRmemMax
public SysctlConfig withNetCoreRmemMax(Integer netCoreRmemMax)
Set the netCoreRmemMax property: Sysctl setting net.core.rmem_max.- Parameters:
netCoreRmemMax- the netCoreRmemMax value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreWmemDefault
public Integer netCoreWmemDefault()
Get the netCoreWmemDefault property: Sysctl setting net.core.wmem_default.- Returns:
- the netCoreWmemDefault value.
-
withNetCoreWmemDefault
public SysctlConfig withNetCoreWmemDefault(Integer netCoreWmemDefault)
Set the netCoreWmemDefault property: Sysctl setting net.core.wmem_default.- Parameters:
netCoreWmemDefault- the netCoreWmemDefault value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreWmemMax
public Integer netCoreWmemMax()
Get the netCoreWmemMax property: Sysctl setting net.core.wmem_max.- Returns:
- the netCoreWmemMax value.
-
withNetCoreWmemMax
public SysctlConfig withNetCoreWmemMax(Integer netCoreWmemMax)
Set the netCoreWmemMax property: Sysctl setting net.core.wmem_max.- Parameters:
netCoreWmemMax- the netCoreWmemMax value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreOptmemMax
public Integer netCoreOptmemMax()
Get the netCoreOptmemMax property: Sysctl setting net.core.optmem_max.- Returns:
- the netCoreOptmemMax value.
-
withNetCoreOptmemMax
public SysctlConfig withNetCoreOptmemMax(Integer netCoreOptmemMax)
Set the netCoreOptmemMax property: Sysctl setting net.core.optmem_max.- Parameters:
netCoreOptmemMax- the netCoreOptmemMax value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpMaxSynBacklog
public Integer netIpv4TcpMaxSynBacklog()
Get the netIpv4TcpMaxSynBacklog property: Sysctl setting net.ipv4.tcp_max_syn_backlog.- Returns:
- the netIpv4TcpMaxSynBacklog value.
-
withNetIpv4TcpMaxSynBacklog
public SysctlConfig withNetIpv4TcpMaxSynBacklog(Integer netIpv4TcpMaxSynBacklog)
Set the netIpv4TcpMaxSynBacklog property: Sysctl setting net.ipv4.tcp_max_syn_backlog.- Parameters:
netIpv4TcpMaxSynBacklog- the netIpv4TcpMaxSynBacklog value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpMaxTwBuckets
public Integer netIpv4TcpMaxTwBuckets()
Get the netIpv4TcpMaxTwBuckets property: Sysctl setting net.ipv4.tcp_max_tw_buckets.- Returns:
- the netIpv4TcpMaxTwBuckets value.
-
withNetIpv4TcpMaxTwBuckets
public SysctlConfig withNetIpv4TcpMaxTwBuckets(Integer netIpv4TcpMaxTwBuckets)
Set the netIpv4TcpMaxTwBuckets property: Sysctl setting net.ipv4.tcp_max_tw_buckets.- Parameters:
netIpv4TcpMaxTwBuckets- the netIpv4TcpMaxTwBuckets value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpFinTimeout
public Integer netIpv4TcpFinTimeout()
Get the netIpv4TcpFinTimeout property: Sysctl setting net.ipv4.tcp_fin_timeout.- Returns:
- the netIpv4TcpFinTimeout value.
-
withNetIpv4TcpFinTimeout
public SysctlConfig withNetIpv4TcpFinTimeout(Integer netIpv4TcpFinTimeout)
Set the netIpv4TcpFinTimeout property: Sysctl setting net.ipv4.tcp_fin_timeout.- Parameters:
netIpv4TcpFinTimeout- the netIpv4TcpFinTimeout value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpKeepaliveTime
public Integer netIpv4TcpKeepaliveTime()
Get the netIpv4TcpKeepaliveTime property: Sysctl setting net.ipv4.tcp_keepalive_time.- Returns:
- the netIpv4TcpKeepaliveTime value.
-
withNetIpv4TcpKeepaliveTime
public SysctlConfig withNetIpv4TcpKeepaliveTime(Integer netIpv4TcpKeepaliveTime)
Set the netIpv4TcpKeepaliveTime property: Sysctl setting net.ipv4.tcp_keepalive_time.- Parameters:
netIpv4TcpKeepaliveTime- the netIpv4TcpKeepaliveTime value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpKeepaliveProbes
public Integer netIpv4TcpKeepaliveProbes()
Get the netIpv4TcpKeepaliveProbes property: Sysctl setting net.ipv4.tcp_keepalive_probes.- Returns:
- the netIpv4TcpKeepaliveProbes value.
-
withNetIpv4TcpKeepaliveProbes
public SysctlConfig withNetIpv4TcpKeepaliveProbes(Integer netIpv4TcpKeepaliveProbes)
Set the netIpv4TcpKeepaliveProbes property: Sysctl setting net.ipv4.tcp_keepalive_probes.- Parameters:
netIpv4TcpKeepaliveProbes- the netIpv4TcpKeepaliveProbes value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpkeepaliveIntvl
public Integer netIpv4TcpkeepaliveIntvl()
Get the netIpv4TcpkeepaliveIntvl property: Sysctl setting net.ipv4.tcp_keepalive_intvl.- Returns:
- the netIpv4TcpkeepaliveIntvl value.
-
withNetIpv4TcpkeepaliveIntvl
public SysctlConfig withNetIpv4TcpkeepaliveIntvl(Integer netIpv4TcpkeepaliveIntvl)
Set the netIpv4TcpkeepaliveIntvl property: Sysctl setting net.ipv4.tcp_keepalive_intvl.- Parameters:
netIpv4TcpkeepaliveIntvl- the netIpv4TcpkeepaliveIntvl value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpTwReuse
public Boolean netIpv4TcpTwReuse()
Get the netIpv4TcpTwReuse property: Sysctl setting net.ipv4.tcp_tw_reuse.- Returns:
- the netIpv4TcpTwReuse value.
-
withNetIpv4TcpTwReuse
public SysctlConfig withNetIpv4TcpTwReuse(Boolean netIpv4TcpTwReuse)
Set the netIpv4TcpTwReuse property: Sysctl setting net.ipv4.tcp_tw_reuse.- Parameters:
netIpv4TcpTwReuse- the netIpv4TcpTwReuse value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4IpLocalPortRange
public String netIpv4IpLocalPortRange()
Get the netIpv4IpLocalPortRange property: Sysctl setting net.ipv4.ip_local_port_range.- Returns:
- the netIpv4IpLocalPortRange value.
-
withNetIpv4IpLocalPortRange
public SysctlConfig withNetIpv4IpLocalPortRange(String netIpv4IpLocalPortRange)
Set the netIpv4IpLocalPortRange property: Sysctl setting net.ipv4.ip_local_port_range.- Parameters:
netIpv4IpLocalPortRange- the netIpv4IpLocalPortRange value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4NeighDefaultGcThresh1
public Integer netIpv4NeighDefaultGcThresh1()
Get the netIpv4NeighDefaultGcThresh1 property: Sysctl setting net.ipv4.neigh.default.gc_thresh1.- Returns:
- the netIpv4NeighDefaultGcThresh1 value.
-
withNetIpv4NeighDefaultGcThresh1
public SysctlConfig withNetIpv4NeighDefaultGcThresh1(Integer netIpv4NeighDefaultGcThresh1)
Set the netIpv4NeighDefaultGcThresh1 property: Sysctl setting net.ipv4.neigh.default.gc_thresh1.- Parameters:
netIpv4NeighDefaultGcThresh1- the netIpv4NeighDefaultGcThresh1 value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4NeighDefaultGcThresh2
public Integer netIpv4NeighDefaultGcThresh2()
Get the netIpv4NeighDefaultGcThresh2 property: Sysctl setting net.ipv4.neigh.default.gc_thresh2.- Returns:
- the netIpv4NeighDefaultGcThresh2 value.
-
withNetIpv4NeighDefaultGcThresh2
public SysctlConfig withNetIpv4NeighDefaultGcThresh2(Integer netIpv4NeighDefaultGcThresh2)
Set the netIpv4NeighDefaultGcThresh2 property: Sysctl setting net.ipv4.neigh.default.gc_thresh2.- Parameters:
netIpv4NeighDefaultGcThresh2- the netIpv4NeighDefaultGcThresh2 value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4NeighDefaultGcThresh3
public Integer netIpv4NeighDefaultGcThresh3()
Get the netIpv4NeighDefaultGcThresh3 property: Sysctl setting net.ipv4.neigh.default.gc_thresh3.- Returns:
- the netIpv4NeighDefaultGcThresh3 value.
-
withNetIpv4NeighDefaultGcThresh3
public SysctlConfig withNetIpv4NeighDefaultGcThresh3(Integer netIpv4NeighDefaultGcThresh3)
Set the netIpv4NeighDefaultGcThresh3 property: Sysctl setting net.ipv4.neigh.default.gc_thresh3.- Parameters:
netIpv4NeighDefaultGcThresh3- the netIpv4NeighDefaultGcThresh3 value to set.- Returns:
- the SysctlConfig object itself.
-
netNetfilterNfConntrackMax
public Integer netNetfilterNfConntrackMax()
Get the netNetfilterNfConntrackMax property: Sysctl setting net.netfilter.nf_conntrack_max.- Returns:
- the netNetfilterNfConntrackMax value.
-
withNetNetfilterNfConntrackMax
public SysctlConfig withNetNetfilterNfConntrackMax(Integer netNetfilterNfConntrackMax)
Set the netNetfilterNfConntrackMax property: Sysctl setting net.netfilter.nf_conntrack_max.- Parameters:
netNetfilterNfConntrackMax- the netNetfilterNfConntrackMax value to set.- Returns:
- the SysctlConfig object itself.
-
netNetfilterNfConntrackBuckets
public Integer netNetfilterNfConntrackBuckets()
Get the netNetfilterNfConntrackBuckets property: Sysctl setting net.netfilter.nf_conntrack_buckets.- Returns:
- the netNetfilterNfConntrackBuckets value.
-
withNetNetfilterNfConntrackBuckets
public SysctlConfig withNetNetfilterNfConntrackBuckets(Integer netNetfilterNfConntrackBuckets)
Set the netNetfilterNfConntrackBuckets property: Sysctl setting net.netfilter.nf_conntrack_buckets.- Parameters:
netNetfilterNfConntrackBuckets- the netNetfilterNfConntrackBuckets value to set.- Returns:
- the SysctlConfig object itself.
-
fsInotifyMaxUserWatches
public Integer fsInotifyMaxUserWatches()
Get the fsInotifyMaxUserWatches property: Sysctl setting fs.inotify.max_user_watches.- Returns:
- the fsInotifyMaxUserWatches value.
-
withFsInotifyMaxUserWatches
public SysctlConfig withFsInotifyMaxUserWatches(Integer fsInotifyMaxUserWatches)
Set the fsInotifyMaxUserWatches property: Sysctl setting fs.inotify.max_user_watches.- Parameters:
fsInotifyMaxUserWatches- the fsInotifyMaxUserWatches value to set.- Returns:
- the SysctlConfig object itself.
-
fsFileMax
public Integer fsFileMax()
Get the fsFileMax property: Sysctl setting fs.file-max.- Returns:
- the fsFileMax value.
-
withFsFileMax
public SysctlConfig withFsFileMax(Integer fsFileMax)
Set the fsFileMax property: Sysctl setting fs.file-max.- Parameters:
fsFileMax- the fsFileMax value to set.- Returns:
- the SysctlConfig object itself.
-
fsAioMaxNr
public Integer fsAioMaxNr()
Get the fsAioMaxNr property: Sysctl setting fs.aio-max-nr.- Returns:
- the fsAioMaxNr value.
-
withFsAioMaxNr
public SysctlConfig withFsAioMaxNr(Integer fsAioMaxNr)
Set the fsAioMaxNr property: Sysctl setting fs.aio-max-nr.- Parameters:
fsAioMaxNr- the fsAioMaxNr value to set.- Returns:
- the SysctlConfig object itself.
-
fsNrOpen
public Integer fsNrOpen()
Get the fsNrOpen property: Sysctl setting fs.nr_open.- Returns:
- the fsNrOpen value.
-
withFsNrOpen
public SysctlConfig withFsNrOpen(Integer fsNrOpen)
Set the fsNrOpen property: Sysctl setting fs.nr_open.- Parameters:
fsNrOpen- the fsNrOpen value to set.- Returns:
- the SysctlConfig object itself.
-
kernelThreadsMax
public Integer kernelThreadsMax()
Get the kernelThreadsMax property: Sysctl setting kernel.threads-max.- Returns:
- the kernelThreadsMax value.
-
withKernelThreadsMax
public SysctlConfig withKernelThreadsMax(Integer kernelThreadsMax)
Set the kernelThreadsMax property: Sysctl setting kernel.threads-max.- Parameters:
kernelThreadsMax- the kernelThreadsMax value to set.- Returns:
- the SysctlConfig object itself.
-
vmMaxMapCount
public Integer vmMaxMapCount()
Get the vmMaxMapCount property: Sysctl setting vm.max_map_count.- Returns:
- the vmMaxMapCount value.
-
withVmMaxMapCount
public SysctlConfig withVmMaxMapCount(Integer vmMaxMapCount)
Set the vmMaxMapCount property: Sysctl setting vm.max_map_count.- Parameters:
vmMaxMapCount- the vmMaxMapCount value to set.- Returns:
- the SysctlConfig object itself.
-
vmSwappiness
public Integer vmSwappiness()
Get the vmSwappiness property: Sysctl setting vm.swappiness.- Returns:
- the vmSwappiness value.
-
withVmSwappiness
public SysctlConfig withVmSwappiness(Integer vmSwappiness)
Set the vmSwappiness property: Sysctl setting vm.swappiness.- Parameters:
vmSwappiness- the vmSwappiness value to set.- Returns:
- the SysctlConfig object itself.
-
vmVfsCachePressure
public Integer vmVfsCachePressure()
Get the vmVfsCachePressure property: Sysctl setting vm.vfs_cache_pressure.- Returns:
- the vmVfsCachePressure value.
-
withVmVfsCachePressure
public SysctlConfig withVmVfsCachePressure(Integer vmVfsCachePressure)
Set the vmVfsCachePressure property: Sysctl setting vm.vfs_cache_pressure.- Parameters:
vmVfsCachePressure- the vmVfsCachePressure value to set.- Returns:
- the SysctlConfig object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-