Class NodeOperatingSystemInfo
- java.lang.Object
-
- org.opensearch.client.opensearch.nodes.info.NodeOperatingSystemInfo
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
@JsonpDeserializable public class NodeOperatingSystemInfo extends java.lang.Object implements PlainJsonSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeOperatingSystemInfo.BuilderBuilder forNodeOperatingSystemInfo.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<NodeOperatingSystemInfo>_DESERIALIZERJson deserializer forNodeOperatingSystemInfo
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegerallocatedProcessors()The number of processors actually used to calculate thread pool size.java.lang.Stringarch()Name of the JVM architecture (ex: amd64, x86)intavailableProcessors()Required - Number of processors available to the Java virtual machineNodeInfoOSCPUcpu()API name:cpuNodeInfoMemorymem()API name:memjava.lang.Stringname()Name of the operating system (ex: Linux, Windows, Mac OS X)static NodeOperatingSystemInfoof(java.util.function.Function<NodeOperatingSystemInfo.Builder,ObjectBuilder<NodeOperatingSystemInfo>> fn)java.lang.StringprettyName()API name:pretty_nameintrefreshIntervalInMillis()Required - 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 voidsetupNodeOperatingSystemInfoDeserializer(ObjectDeserializer<NodeOperatingSystemInfo.Builder> op)NodeInfoMemoryswap()API name:swapjava.lang.Stringversion()Version of the operating system-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<NodeOperatingSystemInfo> _DESERIALIZER
Json deserializer forNodeOperatingSystemInfo
-
-
Method Detail
-
of
public static NodeOperatingSystemInfo of(java.util.function.Function<NodeOperatingSystemInfo.Builder,ObjectBuilder<NodeOperatingSystemInfo>> fn)
-
arch
@Nullable public final java.lang.String arch()
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
@Nullable public final java.lang.Integer 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
@Nullable public final java.lang.String name()
Name of the operating system (ex: Linux, Windows, Mac OS X)API name:
name
-
prettyName
@Nullable public final java.lang.String prettyName()
API name:pretty_name
-
refreshIntervalInMillis
public final int refreshIntervalInMillis()
Required - Refresh interval for the OS statisticsAPI name:
refresh_interval_in_millis
-
version
@Nullable public final java.lang.String version()
Version of the operating systemAPI name:
version
-
cpu
@Nullable public final NodeInfoOSCPU cpu()
API name:cpu
-
mem
@Nullable public final NodeInfoMemory mem()
API name:mem
-
swap
@Nullable public final NodeInfoMemory swap()
API name:swap
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupNodeOperatingSystemInfoDeserializer
protected static void setupNodeOperatingSystemInfoDeserializer(ObjectDeserializer<NodeOperatingSystemInfo.Builder> op)
-
-