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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<NodeOperatingSystemInfo>Json deserializer forNodeOperatingSystemInfo -
Method Summary
Modifier and TypeMethodDescriptionfinal IntegerThe number of processors actually used to calculate thread pool size.final Stringarch()Required - Name of the JVM architecture (ex: amd64, x86)final intRequired - Number of processors available to the Java virtual machinefinal NodeInfoOSCPUcpu()API name:cpufinal NodeInfoMemorymem()API name:memfinal Stringname()Required - Name of the operating system (ex: Linux, Windows, Mac OS X)static NodeOperatingSystemInfofinal StringRequired - API name:pretty_namefinal longRequired - Refresh interval for the OS statisticsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal NodeInfoMemoryswap()API name:swaptoString()final Stringversion()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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupNodeOperatingSystemInfoDeserializer
protected static void setupNodeOperatingSystemInfoDeserializer(ObjectDeserializer<NodeOperatingSystemInfo.Builder> op)
-