Class SysctlConfig
java.lang.Object
com.azure.resourcemanager.containerservice.models.SysctlConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SysctlConfig>
public final class SysctlConfig
extends Object
implements com.azure.json.JsonSerializable<SysctlConfig>
Sysctl settings for Linux agent nodes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SysctlConfigfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SysctlConfig from the JsonReader.Get the fsAioMaxNr property: Sysctl setting fs.aio-max-nr.Get the fsFileMax property: Sysctl setting fs.file-max.Get the fsInotifyMaxUserWatches property: Sysctl setting fs.inotify.max_user_watches.fsNrOpen()Get the fsNrOpen property: Sysctl setting fs.nr_open.Get the kernelThreadsMax property: Sysctl setting kernel.threads-max.Get the netCoreNetdevMaxBacklog property: Sysctl setting net.core.netdev_max_backlog.Get the netCoreOptmemMax property: Sysctl setting net.core.optmem_max.Get the netCoreRmemDefault property: Sysctl setting net.core.rmem_default.Get the netCoreRmemMax property: Sysctl setting net.core.rmem_max.Get the netCoreSomaxconn property: Sysctl setting net.core.somaxconn.Get the netCoreWmemDefault property: Sysctl setting net.core.wmem_default.Get the netCoreWmemMax property: Sysctl setting net.core.wmem_max.Get the netIpv4IpLocalPortRange property: Sysctl setting net.ipv4.ip_local_port_range.Get the netIpv4NeighDefaultGcThresh1 property: Sysctl setting net.ipv4.neigh.default.gc_thresh1.Get the netIpv4NeighDefaultGcThresh2 property: Sysctl setting net.ipv4.neigh.default.gc_thresh2.Get the netIpv4NeighDefaultGcThresh3 property: Sysctl setting net.ipv4.neigh.default.gc_thresh3.Get the netIpv4TcpFinTimeout property: Sysctl setting net.ipv4.tcp_fin_timeout.Get the netIpv4TcpkeepaliveIntvl property: Sysctl setting net.ipv4.tcp_keepalive_intvl.Get the netIpv4TcpKeepaliveProbes property: Sysctl setting net.ipv4.tcp_keepalive_probes.Get the netIpv4TcpKeepaliveTime property: Sysctl setting net.ipv4.tcp_keepalive_time.Get the netIpv4TcpMaxSynBacklog property: Sysctl setting net.ipv4.tcp_max_syn_backlog.Get the netIpv4TcpMaxTwBuckets property: Sysctl setting net.ipv4.tcp_max_tw_buckets.Get the netIpv4TcpTwReuse property: Sysctl setting net.ipv4.tcp_tw_reuse.Get the netNetfilterNfConntrackBuckets property: Sysctl setting net.netfilter.nf_conntrack_buckets.Get the netNetfilterNfConntrackMax property: Sysctl setting net.netfilter.nf_conntrack_max.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vmMaxMapCount property: Sysctl setting vm.max_map_count.Get the vmSwappiness property: Sysctl setting vm.swappiness.Get the vmVfsCachePressure property: Sysctl setting vm.vfs_cache_pressure.withFsAioMaxNr(Integer fsAioMaxNr) Set the fsAioMaxNr property: Sysctl setting fs.aio-max-nr.withFsFileMax(Integer fsFileMax) Set the fsFileMax property: Sysctl setting fs.file-max.withFsInotifyMaxUserWatches(Integer fsInotifyMaxUserWatches) Set the fsInotifyMaxUserWatches property: Sysctl setting fs.inotify.max_user_watches.withFsNrOpen(Integer fsNrOpen) Set the fsNrOpen property: Sysctl setting fs.nr_open.withKernelThreadsMax(Integer kernelThreadsMax) Set the kernelThreadsMax property: Sysctl setting kernel.threads-max.withNetCoreNetdevMaxBacklog(Integer netCoreNetdevMaxBacklog) Set the netCoreNetdevMaxBacklog property: Sysctl setting net.core.netdev_max_backlog.withNetCoreOptmemMax(Integer netCoreOptmemMax) Set the netCoreOptmemMax property: Sysctl setting net.core.optmem_max.withNetCoreRmemDefault(Integer netCoreRmemDefault) Set the netCoreRmemDefault property: Sysctl setting net.core.rmem_default.withNetCoreRmemMax(Integer netCoreRmemMax) Set the netCoreRmemMax property: Sysctl setting net.core.rmem_max.withNetCoreSomaxconn(Integer netCoreSomaxconn) Set the netCoreSomaxconn property: Sysctl setting net.core.somaxconn.withNetCoreWmemDefault(Integer netCoreWmemDefault) Set the netCoreWmemDefault property: Sysctl setting net.core.wmem_default.withNetCoreWmemMax(Integer netCoreWmemMax) Set the netCoreWmemMax property: Sysctl setting net.core.wmem_max.withNetIpv4IpLocalPortRange(String netIpv4IpLocalPortRange) Set the netIpv4IpLocalPortRange property: Sysctl setting net.ipv4.ip_local_port_range.withNetIpv4NeighDefaultGcThresh1(Integer netIpv4NeighDefaultGcThresh1) Set the netIpv4NeighDefaultGcThresh1 property: Sysctl setting net.ipv4.neigh.default.gc_thresh1.withNetIpv4NeighDefaultGcThresh2(Integer netIpv4NeighDefaultGcThresh2) Set the netIpv4NeighDefaultGcThresh2 property: Sysctl setting net.ipv4.neigh.default.gc_thresh2.withNetIpv4NeighDefaultGcThresh3(Integer netIpv4NeighDefaultGcThresh3) Set the netIpv4NeighDefaultGcThresh3 property: Sysctl setting net.ipv4.neigh.default.gc_thresh3.withNetIpv4TcpFinTimeout(Integer netIpv4TcpFinTimeout) Set the netIpv4TcpFinTimeout property: Sysctl setting net.ipv4.tcp_fin_timeout.withNetIpv4TcpkeepaliveIntvl(Integer netIpv4TcpkeepaliveIntvl) Set the netIpv4TcpkeepaliveIntvl property: Sysctl setting net.ipv4.tcp_keepalive_intvl.withNetIpv4TcpKeepaliveProbes(Integer netIpv4TcpKeepaliveProbes) Set the netIpv4TcpKeepaliveProbes property: Sysctl setting net.ipv4.tcp_keepalive_probes.withNetIpv4TcpKeepaliveTime(Integer netIpv4TcpKeepaliveTime) Set the netIpv4TcpKeepaliveTime property: Sysctl setting net.ipv4.tcp_keepalive_time.withNetIpv4TcpMaxSynBacklog(Integer netIpv4TcpMaxSynBacklog) Set the netIpv4TcpMaxSynBacklog property: Sysctl setting net.ipv4.tcp_max_syn_backlog.withNetIpv4TcpMaxTwBuckets(Integer netIpv4TcpMaxTwBuckets) Set the netIpv4TcpMaxTwBuckets property: Sysctl setting net.ipv4.tcp_max_tw_buckets.withNetIpv4TcpTwReuse(Boolean netIpv4TcpTwReuse) Set the netIpv4TcpTwReuse property: Sysctl setting net.ipv4.tcp_tw_reuse.withNetNetfilterNfConntrackBuckets(Integer netNetfilterNfConntrackBuckets) Set the netNetfilterNfConntrackBuckets property: Sysctl setting net.netfilter.nf_conntrack_buckets.withNetNetfilterNfConntrackMax(Integer netNetfilterNfConntrackMax) Set the netNetfilterNfConntrackMax property: Sysctl setting net.netfilter.nf_conntrack_max.withVmMaxMapCount(Integer vmMaxMapCount) Set the vmMaxMapCount property: Sysctl setting vm.max_map_count.withVmSwappiness(Integer vmSwappiness) Set the vmSwappiness property: Sysctl setting vm.swappiness.withVmVfsCachePressure(Integer vmVfsCachePressure) Set the vmVfsCachePressure property: Sysctl setting vm.vfs_cache_pressure.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SysctlConfig
public SysctlConfig()Creates an instance of SysctlConfig class.
-
-
Method Details
-
netCoreSomaxconn
Get the netCoreSomaxconn property: Sysctl setting net.core.somaxconn.- Returns:
- the netCoreSomaxconn value.
-
withNetCoreSomaxconn
Set the netCoreSomaxconn property: Sysctl setting net.core.somaxconn.- Parameters:
netCoreSomaxconn- the netCoreSomaxconn value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreNetdevMaxBacklog
Get the netCoreNetdevMaxBacklog property: Sysctl setting net.core.netdev_max_backlog.- Returns:
- the netCoreNetdevMaxBacklog value.
-
withNetCoreNetdevMaxBacklog
Set the netCoreNetdevMaxBacklog property: Sysctl setting net.core.netdev_max_backlog.- Parameters:
netCoreNetdevMaxBacklog- the netCoreNetdevMaxBacklog value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreRmemDefault
Get the netCoreRmemDefault property: Sysctl setting net.core.rmem_default.- Returns:
- the netCoreRmemDefault value.
-
withNetCoreRmemDefault
Set the netCoreRmemDefault property: Sysctl setting net.core.rmem_default.- Parameters:
netCoreRmemDefault- the netCoreRmemDefault value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreRmemMax
Get the netCoreRmemMax property: Sysctl setting net.core.rmem_max.- Returns:
- the netCoreRmemMax value.
-
withNetCoreRmemMax
Set the netCoreRmemMax property: Sysctl setting net.core.rmem_max.- Parameters:
netCoreRmemMax- the netCoreRmemMax value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreWmemDefault
Get the netCoreWmemDefault property: Sysctl setting net.core.wmem_default.- Returns:
- the netCoreWmemDefault value.
-
withNetCoreWmemDefault
Set the netCoreWmemDefault property: Sysctl setting net.core.wmem_default.- Parameters:
netCoreWmemDefault- the netCoreWmemDefault value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreWmemMax
Get the netCoreWmemMax property: Sysctl setting net.core.wmem_max.- Returns:
- the netCoreWmemMax value.
-
withNetCoreWmemMax
Set the netCoreWmemMax property: Sysctl setting net.core.wmem_max.- Parameters:
netCoreWmemMax- the netCoreWmemMax value to set.- Returns:
- the SysctlConfig object itself.
-
netCoreOptmemMax
Get the netCoreOptmemMax property: Sysctl setting net.core.optmem_max.- Returns:
- the netCoreOptmemMax value.
-
withNetCoreOptmemMax
Set the netCoreOptmemMax property: Sysctl setting net.core.optmem_max.- Parameters:
netCoreOptmemMax- the netCoreOptmemMax value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpMaxSynBacklog
Get the netIpv4TcpMaxSynBacklog property: Sysctl setting net.ipv4.tcp_max_syn_backlog.- Returns:
- the netIpv4TcpMaxSynBacklog value.
-
withNetIpv4TcpMaxSynBacklog
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
Get the netIpv4TcpMaxTwBuckets property: Sysctl setting net.ipv4.tcp_max_tw_buckets.- Returns:
- the netIpv4TcpMaxTwBuckets value.
-
withNetIpv4TcpMaxTwBuckets
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
Get the netIpv4TcpFinTimeout property: Sysctl setting net.ipv4.tcp_fin_timeout.- Returns:
- the netIpv4TcpFinTimeout value.
-
withNetIpv4TcpFinTimeout
Set the netIpv4TcpFinTimeout property: Sysctl setting net.ipv4.tcp_fin_timeout.- Parameters:
netIpv4TcpFinTimeout- the netIpv4TcpFinTimeout value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpKeepaliveTime
Get the netIpv4TcpKeepaliveTime property: Sysctl setting net.ipv4.tcp_keepalive_time.- Returns:
- the netIpv4TcpKeepaliveTime value.
-
withNetIpv4TcpKeepaliveTime
Set the netIpv4TcpKeepaliveTime property: Sysctl setting net.ipv4.tcp_keepalive_time.- Parameters:
netIpv4TcpKeepaliveTime- the netIpv4TcpKeepaliveTime value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpKeepaliveProbes
Get the netIpv4TcpKeepaliveProbes property: Sysctl setting net.ipv4.tcp_keepalive_probes.- Returns:
- the netIpv4TcpKeepaliveProbes value.
-
withNetIpv4TcpKeepaliveProbes
Set the netIpv4TcpKeepaliveProbes property: Sysctl setting net.ipv4.tcp_keepalive_probes.- Parameters:
netIpv4TcpKeepaliveProbes- the netIpv4TcpKeepaliveProbes value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpkeepaliveIntvl
Get the netIpv4TcpkeepaliveIntvl property: Sysctl setting net.ipv4.tcp_keepalive_intvl.- Returns:
- the netIpv4TcpkeepaliveIntvl value.
-
withNetIpv4TcpkeepaliveIntvl
Set the netIpv4TcpkeepaliveIntvl property: Sysctl setting net.ipv4.tcp_keepalive_intvl.- Parameters:
netIpv4TcpkeepaliveIntvl- the netIpv4TcpkeepaliveIntvl value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4TcpTwReuse
Get the netIpv4TcpTwReuse property: Sysctl setting net.ipv4.tcp_tw_reuse.- Returns:
- the netIpv4TcpTwReuse value.
-
withNetIpv4TcpTwReuse
Set the netIpv4TcpTwReuse property: Sysctl setting net.ipv4.tcp_tw_reuse.- Parameters:
netIpv4TcpTwReuse- the netIpv4TcpTwReuse value to set.- Returns:
- the SysctlConfig object itself.
-
netIpv4IpLocalPortRange
Get the netIpv4IpLocalPortRange property: Sysctl setting net.ipv4.ip_local_port_range.- Returns:
- the netIpv4IpLocalPortRange value.
-
withNetIpv4IpLocalPortRange
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
Get the netIpv4NeighDefaultGcThresh1 property: Sysctl setting net.ipv4.neigh.default.gc_thresh1.- Returns:
- the netIpv4NeighDefaultGcThresh1 value.
-
withNetIpv4NeighDefaultGcThresh1
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
Get the netIpv4NeighDefaultGcThresh2 property: Sysctl setting net.ipv4.neigh.default.gc_thresh2.- Returns:
- the netIpv4NeighDefaultGcThresh2 value.
-
withNetIpv4NeighDefaultGcThresh2
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
Get the netIpv4NeighDefaultGcThresh3 property: Sysctl setting net.ipv4.neigh.default.gc_thresh3.- Returns:
- the netIpv4NeighDefaultGcThresh3 value.
-
withNetIpv4NeighDefaultGcThresh3
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
Get the netNetfilterNfConntrackMax property: Sysctl setting net.netfilter.nf_conntrack_max.- Returns:
- the netNetfilterNfConntrackMax value.
-
withNetNetfilterNfConntrackMax
Set the netNetfilterNfConntrackMax property: Sysctl setting net.netfilter.nf_conntrack_max.- Parameters:
netNetfilterNfConntrackMax- the netNetfilterNfConntrackMax value to set.- Returns:
- the SysctlConfig object itself.
-
netNetfilterNfConntrackBuckets
Get the netNetfilterNfConntrackBuckets property: Sysctl setting net.netfilter.nf_conntrack_buckets.- Returns:
- the netNetfilterNfConntrackBuckets value.
-
withNetNetfilterNfConntrackBuckets
Set the netNetfilterNfConntrackBuckets property: Sysctl setting net.netfilter.nf_conntrack_buckets.- Parameters:
netNetfilterNfConntrackBuckets- the netNetfilterNfConntrackBuckets value to set.- Returns:
- the SysctlConfig object itself.
-
fsInotifyMaxUserWatches
Get the fsInotifyMaxUserWatches property: Sysctl setting fs.inotify.max_user_watches.- Returns:
- the fsInotifyMaxUserWatches value.
-
withFsInotifyMaxUserWatches
Set the fsInotifyMaxUserWatches property: Sysctl setting fs.inotify.max_user_watches.- Parameters:
fsInotifyMaxUserWatches- the fsInotifyMaxUserWatches value to set.- Returns:
- the SysctlConfig object itself.
-
fsFileMax
Get the fsFileMax property: Sysctl setting fs.file-max.- Returns:
- the fsFileMax value.
-
withFsFileMax
Set the fsFileMax property: Sysctl setting fs.file-max.- Parameters:
fsFileMax- the fsFileMax value to set.- Returns:
- the SysctlConfig object itself.
-
fsAioMaxNr
Get the fsAioMaxNr property: Sysctl setting fs.aio-max-nr.- Returns:
- the fsAioMaxNr value.
-
withFsAioMaxNr
Set the fsAioMaxNr property: Sysctl setting fs.aio-max-nr.- Parameters:
fsAioMaxNr- the fsAioMaxNr value to set.- Returns:
- the SysctlConfig object itself.
-
fsNrOpen
Get the fsNrOpen property: Sysctl setting fs.nr_open.- Returns:
- the fsNrOpen value.
-
withFsNrOpen
Set the fsNrOpen property: Sysctl setting fs.nr_open.- Parameters:
fsNrOpen- the fsNrOpen value to set.- Returns:
- the SysctlConfig object itself.
-
kernelThreadsMax
Get the kernelThreadsMax property: Sysctl setting kernel.threads-max.- Returns:
- the kernelThreadsMax value.
-
withKernelThreadsMax
Set the kernelThreadsMax property: Sysctl setting kernel.threads-max.- Parameters:
kernelThreadsMax- the kernelThreadsMax value to set.- Returns:
- the SysctlConfig object itself.
-
vmMaxMapCount
Get the vmMaxMapCount property: Sysctl setting vm.max_map_count.- Returns:
- the vmMaxMapCount value.
-
withVmMaxMapCount
Set the vmMaxMapCount property: Sysctl setting vm.max_map_count.- Parameters:
vmMaxMapCount- the vmMaxMapCount value to set.- Returns:
- the SysctlConfig object itself.
-
vmSwappiness
Get the vmSwappiness property: Sysctl setting vm.swappiness.- Returns:
- the vmSwappiness value.
-
withVmSwappiness
Set the vmSwappiness property: Sysctl setting vm.swappiness.- Parameters:
vmSwappiness- the vmSwappiness value to set.- Returns:
- the SysctlConfig object itself.
-
vmVfsCachePressure
Get the vmVfsCachePressure property: Sysctl setting vm.vfs_cache_pressure.- Returns:
- the vmVfsCachePressure value.
-
withVmVfsCachePressure
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SysctlConfig>- Throws:
IOException
-
fromJson
Reads an instance of SysctlConfig from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SysctlConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the SysctlConfig.
-