Class NodeOperatingSystemInfo.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NodeOperatingSystemInfo.Builder>
co.elastic.clients.elasticsearch.nodes.info.NodeOperatingSystemInfo.Builder
- All Implemented Interfaces:
WithJson<NodeOperatingSystemInfo.Builder>,ObjectBuilder<NodeOperatingSystemInfo>
- Enclosing class:
- NodeOperatingSystemInfo
public static class NodeOperatingSystemInfo.Builder
extends WithJsonObjectBuilderBase<NodeOperatingSystemInfo.Builder>
implements ObjectBuilder<NodeOperatingSystemInfo>
Builder for
NodeOperatingSystemInfo.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocatedProcessors(Integer value) The number of processors actually used to calculate thread pool size.Required - Name of the JVM architecture (ex: amd64, x86)availableProcessors(int value) Required - Number of processors available to the Java virtual machinebuild()Builds aNodeOperatingSystemInfo.cpu(NodeInfoOSCPU value) API name:cpuAPI name:cpumem(NodeInfoMemory value) API name:memAPI name:memRequired - Name of the operating system (ex: Linux, Windows, Mac OS X)prettyName(String value) Required - API name:pretty_namerefreshIntervalInMillis(long value) Required - Refresh interval for the OS statisticsprotected NodeOperatingSystemInfo.Builderself()swap(NodeInfoMemory value) API name:swapAPI name:swapRequired - Version of the operating systemMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arch
Required - Name of the JVM architecture (ex: amd64, x86)API name:
arch -
availableProcessors
Required - Number of processors available to the Java virtual machineAPI name:
available_processors -
allocatedProcessors
The number of processors actually used to calculate thread pool size. This number can be set with the node.processors setting of a node and defaults to the number of processors reported by the OS.API name:
allocated_processors -
name
Required - Name of the operating system (ex: Linux, Windows, Mac OS X)API name:
name -
prettyName
Required - API name:pretty_name -
refreshIntervalInMillis
Required - Refresh interval for the OS statisticsAPI name:
refresh_interval_in_millis -
version
Required - Version of the operating systemAPI name:
version -
cpu
API name:cpu -
cpu
public final NodeOperatingSystemInfo.Builder cpu(Function<NodeInfoOSCPU.Builder, ObjectBuilder<NodeInfoOSCPU>> fn) API name:cpu -
mem
API name:mem -
mem
public final NodeOperatingSystemInfo.Builder mem(Function<NodeInfoMemory.Builder, ObjectBuilder<NodeInfoMemory>> fn) API name:mem -
swap
API name:swap -
swap
public final NodeOperatingSystemInfo.Builder swap(Function<NodeInfoMemory.Builder, ObjectBuilder<NodeInfoMemory>> fn) API name:swap -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<NodeOperatingSystemInfo.Builder>
-
build
Builds aNodeOperatingSystemInfo.- Specified by:
buildin interfaceObjectBuilder<NodeOperatingSystemInfo>- Throws:
NullPointerException- if some of the required fields are null.
-