Class NodeOperatingSystemInfo
java.lang.Object
co.elastic.clients.elasticsearch.nodes.info.NodeOperatingSystemInfo
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class NodeOperatingSystemInfo
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<NodeOperatingSystemInfo>
Json deserializer forNodeOperatingSystemInfo
-
Method Summary
Modifier and TypeMethodDescriptionfinal Integer
The number of processors actually used to calculate thread pool size.final String
arch()
Required - Name of the JVM architecture (ex: amd64, x86)final int
Required - Number of processors available to the Java virtual machinefinal NodeInfoOSCPU
cpu()
API name:cpu
final NodeInfoMemory
mem()
API name:mem
final String
name()
Required - Name of the operating system (ex: Linux, Windows, Mac OS X)static NodeOperatingSystemInfo
final String
Required - API name:pretty_name
final long
Required - Refresh interval for the OS statisticsvoid
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final NodeInfoMemory
swap()
API name:swap
toString()
final String
version()
Required - Version of the operating system
-
Field Details
-
_DESERIALIZER
Json deserializer forNodeOperatingSystemInfo
-
-
Method Details
-
of
public static NodeOperatingSystemInfo of(Function<NodeOperatingSystemInfo.Builder, ObjectBuilder<NodeOperatingSystemInfo>> fn) -
arch
Required - Name of the JVM architecture (ex: amd64, x86)API name:
arch
-
availableProcessors
public final int 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
public final long 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
-
mem
API name:mem
-
swap
API name:swap
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupNodeOperatingSystemInfoDeserializer
protected static void setupNodeOperatingSystemInfoDeserializer(ObjectDeserializer<NodeOperatingSystemInfo.Builder> op)
-